We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a simpler way of adding line numbers to code blocks besides using CSS counters?
It kind of works but it's not perfect.
pre { counter-reset: count 1; } pre br + span { position: relative; font-family: monospace; counter-increment: count; } pre span:nth-of-type(1)::before, pre br + span::before { content: counter(count); position: absolute; top: 0px; left: -60px; color: #fff; opacity: 0.2; }
The text was updated successfully, but these errors were encountered:
eca8780
No branches or pull requests
Is there a simpler way of adding line numbers to code blocks besides using CSS counters?
It kind of works but it's not perfect.
line-numbers.mp4
The text was updated successfully, but these errors were encountered: