-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Custom section (header) ID #1141
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
Comments
I think such a change would be best made as an extension in pulldown-cmark, the markdown processor mdbook uses. Perhaps ask over there if it would be considered? I usually just add |
pulldown-cmark v0.9.0 now has |
@ehuss This is easy to work on, should I make this a default option or configurable? Also I should document it on the mdbook, right? |
Thanks for taking a look! I think it should be fine to have it always be on. I think the risk of it causing issues is low. Just make sure to test that things like the search index work correctly. And yea, the documentation would be listed as an extension at https://github.com/rust-lang/mdBook/blob/master/guide/src/format/markdown.md. |
It would be useful if the section IDs can be specified manually (such as
# About foo {#foo}
, supported by many processors including zola).For example, it would be useful when:
Users can already control paths by setting filename, then it is natural if users can also control fragment part of URIs (
/user/specified/path.html#THIS-PART
).Is this feature simply not implemented or considered yet, or are there some reasons to object to this feature?
Maybe related: #880
The text was updated successfully, but these errors were encountered: