Skip to content
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

Open
simonhaenisch opened this issue May 8, 2018 · 1 comment
Open

Auto numbering for headings #10

simonhaenisch opened this issue May 8, 2018 · 1 comment
Labels

Comments

@simonhaenisch
Copy link
Owner

simonhaenisch commented May 8, 2018

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).

@hadrien-toma
Copy link

I also prefer the "with a custom renderer" way of accomplishing it, this feature would be awesome ❤️.

@simonhaenisch simonhaenisch removed their assignment Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants