Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mementum opened this issue Feb 18, 2024 · 1 comment
Open

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

mementum opened this issue Feb 18, 2024 · 1 comment

Comments

@mementum
Copy link

mementum commented Feb 18, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants