|
If I create documentation like this:
[source,bash]
----
ls \
-lrt
----
asciidoctor will render html that can be copied and pasted into a bash shell. It executes without errors. Is there a way to add a callout for line 1 without causing errors when copied and pasted into a bash shell? I have tried this:
[source,bash]
----
ls \ <1>
-lrt
----
<1> this is line 1
The issue it seems is that the callout mechanism requires a space to be added at the end of line 1 of the bash script in order for the <1> to be recognized. The bash backslash character is intended to escape the newline and not the space character. Is there a way to prevent the rendered html to exclude the literal space in line 1, for example?
|