-
Notifications
You must be signed in to change notification settings - Fork 18
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 to disable all headings.anchorLinks
at once
#203
Comments
That should actually work already. The typing for the config is missing that it can be a boolean: Lines 67 to 71 in 231bac6
but if I look into how heading anchor links are generated, this should not matter, as it will result in just not generating headings e.g. here: mdc/src/runtime/components/prose/ProseH1.vue Lines 18 to 19 in 231bac6
|
Yeah. But probably also needs changes for (Some things are missing / have changed since |
Thanks for your reply @nobkd, I guess I can ignore typescript warnings for now. I can open a PR to add Let me know if a PR for |
Having
To handle Line 62 in fade64f
|
Thanks @farnabaz, would you accept two separate PR's? I can prepare a quick one for |
Sure, feel free to open two different PRs |
Currently, the default behavior when rendering headings inside a markdown content is to use anchor links on several heading levels.
In the scenario where one needs to disable anchor links on all levels, currently the config object to pass is like that
This is quite verbose, and, even if I don't have numbers to support this, my guess is that it is more common to be in need to disable links on all levels, rather than in some of them.
I'd like to have an option to disable all of them at once in addition to the current granular setting, maybe like this:
Thanks ✌️
The text was updated successfully, but these errors were encountered: