asciidoctor / kramdown-asciidoc

A kramdown extension for converting Markdown documents to AsciiDoc.
Other
207 stars 19 forks source link

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

Open mementum opened 8 months ago

mementum commented 8 months ago

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.

mojavelinux commented 8 months ago

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