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 line numbers in code blocks? #24

Open
bumblefudge opened this issue Jun 14, 2021 · 2 comments
Open

Auto line numbers in code blocks? #24

bumblefudge opened this issue Jun 14, 2021 · 2 comments

Comments

@bumblefudge
Copy link
Contributor

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
Copy link
Contributor Author

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

@bumblefudge
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant