asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

Listing block is not recognized correctly #457

Closed ghorwin closed 4 years ago

ghorwin commented 4 years ago

Hi all - AsciidocFX is awesome, and this bug report is really only cosmetic. Please see attached screenshot. When a listing block contains listing block separators itself, the syntax highlighting doesn pick up the different levels of listing blocks as Asciidoc defines.

Suppose you start a listing block with 5 dashes and finish it with 5 dashes. Then, you write a line with many more dashes (or fewer) inside the listing block. This appears to confuse the syntax highlighting (see attached image)

rahmanusta commented 4 years ago

Hi, can you share the attached image?

ghorwin commented 4 years ago

Sure. In the screenshot look at the block in the middle. The HTML/PDF Output is correct, though, so it seems only to be an editor issue.

AsciidocFX_code_block_delimiter_problem

rahmanusta commented 4 years ago

You talk about the editor part right (middle)? not preview part ? If so, this should be reported https://github.com/ajaxorg/ace since we use that component, and have no control/knowledge of this part.

ghorwin commented 4 years ago

Ok, thanks for the info. I'll submit a bug report there.