Re: Another markup-escaping question
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/Another-markup-escaping-question-tp5665p5672.html
Open block is the one exception to this rule. That's why we have this issue:
The choice to use two hyphens for an open block in AsciiDoc (Python) was a mistake. It broke the model of AsciiDoc in more than one way. That's why I plan on addressing it. It's probably going to be part of the 1.5.7 release.
You can escape the hyphens in the listing block using either an attribute reference or a character reference.
For example:
:open-block-delimiter: --
--
[subs=attributes+]
----
{open-block-delimiter}
----
--
or
--
[subs=+replacements]
----
--
----
I prefer the first solution.
Cheers,
-Dan