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

Org Mode reader: Pandoc ignores link text if the URL is image-ish, a.k.a. Cannot link to an image file without inlining the image #5191

Closed
edom opened this issue Dec 31, 2018 · 1 comment

Comments

@edom
Copy link

edom commented Dec 31, 2018

How to reproduce

Pandoc version:

pandoc 2.4
Compiled with pandoc-types 1.17.5.1, texmath 0.11.1.2, skylighting 0.7.4

Command line:

pandoc a.org -o a.html

Input file a.org:

[[https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png]]

[[https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png][rabbit]]

Output file: a.html:

<p><img src="https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png" /></p>
<p><img src="https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png" /></p>

Expected output (Note the actual IMG vs the expected A in the second P):

<p><img src="https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png" /></p>
<p><a href="https://openclipart.org/image/300px/svg_to_png/216413/coniglio_rabbit_small.png">rabbit</a></p>
@jgm
Copy link
Owner

jgm commented Dec 31, 2018

Confirmed with pandoc 2.5 also.
@tarleb

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

No branches or pull requests

2 participants