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

Allow stable links #32

Open
pgroke-dt opened this issue Mar 24, 2020 · 0 comments
Open

Allow stable links #32

pgroke-dt opened this issue Mar 24, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pgroke-dt
Copy link

IMO it's often useful to have stable links to sections of a document, even if the header text is changed (e.g. typo fixed or rephrased for improved clarity). So it would be great if this was possible.

I was thinking about maybe using the class attribute in the anchor to mark it as "user defined". When such an anchor is discovered, the name and id attributes should be parsed from it and used in the TOC, and the anchor should either be left in place unchanged or re-generated using the same class, name and id attributes.

Anchors not marked as "user defined" as well as missing anchors should be treated like they are currently, i.e. updated or inserted. Also the TOC text should be updated to match changed headers.

@huntertran huntertran added enhancement New feature or request help wanted Extra attention is needed labels Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants