-
Notifications
You must be signed in to change notification settings - Fork 499
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
Implement start line number for source listing #752
Comments
There's a related issue for this in core. See asciidoctor/asciidoctor#1742. |
We can only support this for Rouge at the moment since Rouge is the only highlighter that currently supports line numbering. |
Pygments also supports line numbering, and I believe that it supports start line number through the |
The linenostart option from Pygments doesn't help us because of where Pygments puts line numbers. However, I found another way to implement it. I'm looking for feedback on the change. Please see #226. |
Implement a line number offset for source listing (specifically for Rouge, which supports this feature). To be consistent with ordered lists, we should use the attribute name
start
for this purpose.(Rouge uses the option name start_line and Pygments uses linenostart, so "start" seems to be the key term).
The text was updated successfully, but these errors were encountered: