Created
July 1, 2020 07:58
-
-
Save suin/f5a192d8f20a3d8451df60094b36bc5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.markdown { | |
counter-reset: h2 0; | |
} | |
.markdown h2 { | |
counter-increment: h2; | |
counter-reset: h3 0; | |
} | |
.markdown h3 { | |
counter-increment: h3; | |
counter-reset: h4 0; | |
} | |
.markdown h4 { | |
counter-increment: h4; | |
} | |
.markdown h2:before { | |
content: counter(h2)". "; | |
} | |
.markdown h3:before { | |
content: counter(h2)"." counter(h3)" "; | |
} | |
.markdown h4:before { | |
content: counter(h2)"." counter(h3)"." counter(h4)" "; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment