decentralized-identity / spec-up

Create beautiful, feature-rich technical specifications in markdown
https://identity.foundation/spec-up/
Apache License 2.0
35 stars 28 forks source link

Auto line numbers in code blocks? #24

Open bumblefudge opened 3 years ago

bumblefudge commented 3 years ago

https://stackoverflow.com/questions/36122803/how-to-display-line-numbers-using-github-flavored-markdown-code

^ I already tried, '''json= did not work. Not sure if it would be worth the hassle, but just putting in the feature request in case it's easy or the markdown parser/library is already being replaced at some point for some other reason... a girl can dream!

bumblefudge commented 3 years ago

(a CSS property was discussed on the WACI-PEx call today, that might be even better!)

bumblefudge commented 2 years ago

also note-- at Spruce we use docusaurus for https://spruceid.dev/ , and a little custom CSS magic let us display line numbers in cut-and-pasteable blocks. Not sure if the same JS libraries for code-block formatting are at work under the hood, but if so, feel free to cut and paste the CSS definitions or other tweaks to docusaurus in that PR?