asciidoctor/kramdown-asciidoc

Image Links fail if the line is folded in the middle of the text

Opened this issue · 1 comments

Considering your input from #115, I don't know if this is down to the converter or it shall go upstream.

This will work after being translated:

![image text](hello.png)

But this will not work

![image
text](hello.png)

The translation in the 2nd case is:

image::hello.png[image
text]

and this later fails when the asciidoc source is converted to pdf or epub. No image will be shown, just the macro and what follows.

The same does not happen for web links, which do work when folded in the same fashion.

Indeed, Kramdown AsciiDoc should be removing (normalizing) this newline as a block attribute has to be on a single line.