Skip to content
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

Fix anchors/links in markdown [3.1.0.md] #3136

Closed
wants to merge 1 commit into from
Closed

Conversation

vksepm
Copy link

@vksepm vksepm commented Jan 12, 2023

Broken link for Path Item Object

Broken link for `Path Item Object`
@ralfhandl
Copy link
Contributor

Basically all links are now broken.

Problem is that GitHub changed the way they translate Markdown into HTML.

The OpenAPI spec uses this pattern to define explicit section anchors:

#### <a name="pathItemObject"></a>Path Item Object

This worked fine until a few months ago, since then the anchor element is no longer copied into the output HTML when it is embedded within the headline.

A systematic fix would be to change all of these header lines with embedded anchors into anchors immediately preceding the header line:

<a name="pathItemObject"></a>
#### Path Item Object

This style of anchors is still copied verbatim into the output HTML, and the links work fine.

I did this in two other GitHub repos for a bunch of Markdown files.

@handrews
Copy link
Member

The link fixes have been consolidated for all versions in PR #3408 (and follow-up PRs as noted in its description), so I am closing all other link fix PRs in favor of that one.

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.

3 participants