Skip to content

[5.7] Allow writing doc links to subsections using special characters (#262) #265

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

d-ronnqvist
Copy link
Contributor

  • Rationale: This improves the UX of writing links to on-page subsections when those on-page headings contains apostrophes, punctuation, or special characters.
  • Risk: Low
  • Risk Detail: This is a targeted change to how links to on-page headings are written and the URLs those headings get. The heading URL could have a collision if the titles for two or more headings on the same page only differ by punctuation characters but the odds of that are low.
  • Reward: Medium
  • Reward Details: Developers no longer need to write percent encoded links when headings contain punctuation or other special characters that are not allowed in the fragment of a URL.
  • Original PR: Allow writing doc links to subsections using special characters #262
  • Issue: rdar://93458581
  • Code Reviewed By: @franklinsch
  • Testing Details: Added automated tests to verify that various forms of links to subsections using punctuation and special characters resolve successfully.

…tlang#262)

* Allow writing doc links to subsections using special characters

rdar://93458581

* Rename ValidatedURL initializers to indicate intended use at call site
@d-ronnqvist d-ronnqvist requested a review from franklinsch May 25, 2022 21:52
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit e89095c into swiftlang:release/5.7 May 25, 2022
@d-ronnqvist d-ronnqvist deleted the section-links-with-special-characters-5.7 branch October 25, 2024 09:00
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