asam-ev / asam-project-guide

(WIP!) Project Guide for ASAM OpenX standards
Mozilla Public License 2.0
2 stars 0 forks source link

Add numlines to highlighter #157

Open philipwindecker opened 2 years ago

philipwindecker commented 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/

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

philipwindecker commented 2 years ago

This relates to #154