Skip to content

[5.9] Respect formatting of links to symbols using custom titles #651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mportiz08
Copy link
Contributor

  • Explanation: Fixes bug where code voice is incorrectly applied to links with custom titles/formatting which point to symbols. Now the inline formatting of the custom links will be respected as-is.
  • Scope: Impacts all DocC links with custom titles/formatting
  • Issue: rdar://108515663
  • Risk: Low, added flag/logic for links with custom titles
  • Testing: Added/updated unit tests and manually tested various kinds of DocC links to verify that the formatting is appropriate.
  • Reviewer: @dobromir-hristov and @marinaaisa
  • Original PR: Respect formatting of links to symbols using custom titles #647

…#647)

**Example:**

```markdown
/// Default, should use code voice: ``StringBuilder``
///
/// Custom title, should use code voice: [`custom text`](doc:StringBuilder)
///
/// Custom title, should not use code voice: [custom text](doc:StringBuilder)
///
/// Custom title, should use italics and bold: [_**custom text**_](doc:StringBuilder)
```

Resolves: swiftlang#632 
Resolves: rdar://108515663
@mportiz08 mportiz08 requested a review from franklinsch May 9, 2023 20:46
@mportiz08
Copy link
Contributor Author

@swift-ci test

@mportiz08 mportiz08 merged commit 910fd72 into swiftlang:release/5.9 May 11, 2023
@mportiz08 mportiz08 deleted the 5.9/dont-apply-code-element-to-refs-with-inline-formatting branch May 11, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants