kramdown-asciidoc icon indicating copy to clipboard operation
kramdown-asciidoc copied to clipboard

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

Open mementum opened this issue 1 year ago • 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.

mementum avatar Feb 18 '24 14:02 mementum

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

mojavelinux avatar Feb 18 '24 20:02 mojavelinux