-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Anchor link for headers with "and" #470
Comments
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/markdown \
-d '{"text":"# Reference issues and pull requests \n # Mention people and teams", "mode": "markdown"}' <div class="markdown-heading"><h1 class="heading-element">Reference issues and pull requests</h1><a id="user-content-reference-issues-and-pull-requests" class="anchor" aria-label="Permalink: Reference issues and pull requests" href="#reference-issues-and-pull-requests"><span aria-hidden="true" class="octicon octicon-link"></span></a></div>
<div class="markdown-heading"><h1 class="heading-element">Mention people and teams</h1><a id="user-content-mention-people-and-teams" class="anchor" aria-label="Permalink: Mention people and teams" href="#mention-people-and-teams"><span aria-hidden="true" class="octicon octicon-link"></span></a></div> |
Looks to be a non-issue it was caused by the introduction of the ASCII character code 160 the non-breaking space. When generating the anchor navigation links, GitHub's markdown parser converts spaces to hyphens. In this particular case it was not happening due to the space character not being the standard ASCII space character code 30
|
Other spaces characters to look out for but in the Unicode space are:
A list of other possible spaces in Unicode can be found at the below link: |
@MajorKeen many thanks for your detailed explanation, it make sense now. I will try to handle these special cases in the TOC generator. |
|
Steps to Reproduce:
Expected:
#mention-people-and-teams
#reference-issues-and-pull-requests
Actual:
#mention-people-andteams
#reference-issues-and-pullrequests
Impact:
Broken navigation links.
The text was updated successfully, but these errors were encountered: