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.Dismiss alert
I searched issues and couldn’t find anything (or linked relevant results below)
Problem
I thought it would be useful to be able to add a prefix to the generated slugs.
Had the case where on the same page there were multiple instances of rehype and I needed to make sure each slug generated, was unique throughout the page and prefixing them with an id related to the instance solved the problem.
Solution
Since I needed this feature, I've made a fork: 82d837c
Alternatives
I'm not sure there any alternatives, maybe adding some hidden content to the headings? Correct me if I'm wrong..
The text was updated successfully, but these errors were encountered:
See #13.
Your case is interesting and different though.
GH does some things like this for footnotes in comments (which are numbered, so, #fn-1). Where they prefix with a hash of the comment.
They never render headings with IDs from different sources on the same page though.
Initial checklist
Problem
I thought it would be useful to be able to add a prefix to the generated slugs.
Had the case where on the same page there were multiple instances of rehype and I needed to make sure each slug generated, was unique throughout the page and prefixing them with an id related to the instance solved the problem.
Solution
Since I needed this feature, I've made a fork: 82d837c
Alternatives
I'm not sure there any alternatives, maybe adding some hidden content to the headings? Correct me if I'm wrong..
The text was updated successfully, but these errors were encountered: