You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
# Test## Table Of Contents*[Section](#my-section-id)*[Subsection](#my-subsection-id)## <ahref="#my-section-id"id="my-section-id">Section</a> ### <ahref="#my-subsection-id"id="my-subsection-id">Subsection</a>
Launch pkgsite, navigate to the page of the module, and expand the documentation.
What did you expect to see?
Either HTML IDs being remapped in both the ToC and the headers or no remapping at all.
What did you see instead?
The ToC links are remapped to #readme-my-section-id and #readme-my-subsection-id respectively, while the IDs in headers stay the same, which makes the table of contents links useless.
Additional notes
The ultimate goal is to have a Markdown file with a table of contents and clickable headers that has the same interactive functionality in all Markdown renderers that matter. Which includes most Git hosting sites as well as pkg.go.dev. The former all work, but the latter has HTML ID issues.
The text was updated successfully, but these errors were encountered:
What is the URL of the page with the issue?
(Self-hosted.)
What is your user agent?
(Any; the issue is with the Markdown renderer.)
Screenshot
(Personal information removed.)
What did you do?
Init an empty Go module.
Add a readme with the following content:
Launch
pkgsite
, navigate to the page of the module, and expand the documentation.What did you expect to see?
Either HTML IDs being remapped in both the ToC and the headers or no remapping at all.
What did you see instead?
The ToC links are remapped to
#readme-my-section-id
and#readme-my-subsection-id
respectively, while the IDs in headers stay the same, which makes the table of contents links useless.Additional notes
The ultimate goal is to have a Markdown file with a table of contents and clickable headers that has the same interactive functionality in all Markdown renderers that matter. Which includes most Git hosting sites as well as pkg.go.dev. The former all work, but the latter has HTML ID issues.
The text was updated successfully, but these errors were encountered: