-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add option for adding a prefix #14
Comments
See #13. GH does some things like this for footnotes in comments (which are numbered, so, Interested in PRing the feature to this project? |
I'm not sure about the GH case you are talking about (care to point it out)? Anyway, I'll open a PR. |
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: