-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Auto numbering for headings #10
Labels
Comments
Closed
I also prefer the "with a custom renderer" way of accomplishing it, this feature would be awesome ❤️. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could be done purely with CSS (see http://2ality.com/2012/01/numbering-headingshtml.html), but would require extra styles for the TOC (if that get's implemented). Alternatively, it could be done with a custom renderer (see markedjs/marked#334 (comment)), which would be more flexible regarding styling (e. g.
font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
and better alignment for the numbering in the TOC).The text was updated successfully, but these errors were encountered: