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

Images in link descriptions are not parsed #54

Open
link2xt opened this issue May 25, 2019 · 2 comments
Open

Images in link descriptions are not parsed #54

link2xt opened this issue May 25, 2019 · 2 comments

Comments

@link2xt
Copy link
Contributor

link2xt commented May 25, 2019

This code:

[[https://example.com/][Image [[image.png]] in link description]]

produces this HTML:

<p>
<a class="text-amuse-link" href="https://example.com/">Image [[image.png</a> in link description]]
</p>

Emacs Muse also fails to parse it. pandoc can produce similar markup when converting from other formats, such as HTML.

This is low-priority, I just checked how text-amuse handles this since I fixed it in pandoc: jgm/pandoc@f807f5b

@melmothx
Copy link
Owner

melmothx commented Jun 6, 2019

@link2xt I'm not even sure that the output produces something sensible in latex.

Links (including images) are not parsed again in link descriptions. If you permit [[image.png]], then it should permit [[image.png][sub-desc]] and the next step would be to have a full recursion, which it doesn't make sense to me.

Is there a legit use-case for this?

The only legit thing I can think of is something like [[https://example.com][image.png]] where the it should turn into a linked image, but that should be a special case, without involving a form of recursion.

@link2xt
Copy link
Contributor Author

link2xt commented Jun 9, 2019

Here is another example (link inside the image description) that is probably more common

[[image.jpg][Image from [[https://amusewiki.org/]]]]

Also doesn't work with Text::Amuse

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