Open sindzicat opened 6 years ago
I'm not observing the same behavior (using 1.5.6.1). Is the literal block inside of an AsciiDoc table cell, by chance?
@mojavelinux, sorry, I forgot to tell about this. I thought this doesn't matter. Yes, you are quite right: this code block is in table.
Test file:
= Test file
:nofooter:
....
\*stars* +
st\\**a**rs +
\\__func__
// some comment
....
[cols="1*a"]
|===
| Header
|
....
\*stars* +
st\\**a**rs +
\\__func__
// some comment
....
|===
Result:
So, this problems is only when code block is in table.
Please, help me to solve this problem. I can use ++++
to insert raw html, but I'd like to use Asciidocs syntax for this purpose.
This is a parsing bug / quirk we're going to have to find a solution for.
Btw, the workaround is to indent the content in the verbatim block and set indent=0
on the block.
[cols="1*a"]
|===
| Header
|
[indent=0]
....
\*stars* +
st\\**a**rs +
\\__func__
// some comment
....
|===
Hello!
I type:
I see in html:
But there is no the last line in result. Workarround:
But it's a workarround only if you don't need line numbering or syntax highlighting.
It seems for me there is a bug in asciidoctor: it shouldn't parse the last string as a comment.
Best regrads, Andrey.