You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
Source blocks support the linenums option. This option adds line numbers to the rendered source block when supported by the source highlighter or converter.
However, the named option is preferred. The option can also be enabled globally by setting the source-linenums-option attribute.
The docs should emphasize that while the option is a part of the AsciiDoc language, it does require support from the toolchain (syntax highlighter adapter, converter, and/or output format), so it may not always be honored.
The linenums option is documented in passing in the Asciidoctor docs on the page for each syntax highlighter adapter. See:
Source blocks support the linenums option. This option adds line numbers to the rendered source block when supported by the source highlighter or converter.
The linenums option can also be specified as the third positional (unnamed) attribute on the source block.
However, the named option is preferred. The option can also be enabled globally by setting the
source-linenums-option
attribute.The docs should emphasize that while the option is a part of the AsciiDoc language, it does require support from the toolchain (syntax highlighter adapter, converter, and/or output format), so it may not always be honored.
The linenums option is documented in passing in the Asciidoctor docs on the page for each syntax highlighter adapter. See:
However, this topic deserves its own section or page to define it and solidify it as part of the AsciiDoc language.
The text was updated successfully, but these errors were encountered: