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

link_attributes vs. reference-links vs. markdown writer #3630

Closed
sebogh opened this issue May 2, 2017 · 0 comments · Fixed by #3631
Closed

link_attributes vs. reference-links vs. markdown writer #3630

sebogh opened this issue May 2, 2017 · 0 comments · Fixed by #3631

Comments

@sebogh
Copy link

sebogh commented May 2, 2017

$ pandoc -v
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
...

When converting from markdown to markdown a space seems to be missing before the attributes in the reference:

$ pandoc -f markdown -t markdown --reference-links
![foo](bar.png){#id:1}
^D
![foo]

    [foo]: bar.png{#id:1}

If this is (again) sent through Pandoc, the former attributes become part of the image name as in:

 $ pandoc -f markdown -t markdown --reference-links | pandoc -f markdown -t html
 ![foo](bar.png){#id:1}
 ^D
 <div class="figure">
 <embed src="bar.png%7B#id:1%7D" />
 <p class="caption">foo</p>
 </div>
mb21 added a commit to mb21/pandoc that referenced this issue May 2, 2017
mb21 added a commit to mb21/pandoc that referenced this issue May 2, 2017
@jgm jgm closed this as completed in #3631 May 3, 2017
jgm pushed a commit that referenced this issue May 3, 2017
Fixes #3630 (#3631).

Previously the attributes in link reference definitions did not have a space preceding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants