Open philipwindecker opened 2 years ago
The default highlighter.js solution supported in Antora does not support line numbers. Since these are required by ASAM, an additional script needs to be added to the Antora UI.
Example repo: https://github.com/wcoder/highlightjs-line-numbers.js/
Source highlighting in Antora does not allow linenums.
Antora, by default, only supports highlighter.js. highlighter.js, in turn, does not support linenums because of design decisions.
This relates to #154
The default highlighter.js solution supported in Antora does not support line numbers. Since these are required by ASAM, an additional script needs to be added to the Antora UI.
Example repo: https://github.com/wcoder/highlightjs-line-numbers.js/
Background
Source highlighting in Antora does not allow linenums.
Reason
Antora, by default, only supports highlighter.js. highlighter.js, in turn, does not support linenums because of design decisions.
Sources
Options