Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to provide an example of how to extract line number information using role (the "easy" way) and also how to undertake a more semantically correct way of extracting the file and line number and adding to html attributes.
Mainly because I'd synchronisation and includes to work beautifully in editor extensions (e.g. see asciidoctor/asciidoctor-vscode#59)
I guess the use of a template might be outside the scope of the extensions lab.
I don't think there's an easier way to do this than to override the html converter (It would be neat if we could say "add the line number as an attribute to each div element" but I think Asciidoctor doesn't offer this kind of abstraction/interface at the moment). I'd be very happy to be corrected 😸