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

commonmark_x reader with implicit_figures isn't checking whether the caption is empty? #10429

Closed
wlupton opened this issue Nov 27, 2024 · 0 comments
Labels

Comments

@wlupton
Copy link
Contributor

wlupton commented Nov 27, 2024

I asked this in discussion #10417 but there was no response, so I'm creating an issue.

I think this is a bug in commonmark_x+implicit_figures (the caption is empty, so it should be an image, not a figure?).

% pandoc -v
pandoc 3.5
% pandoc -f markdown <<<'![](Cat.png)'
<p><img src="Cat.png" /></p>
% pandoc -f commonmark_x+implicit_figures <<<'![](Cat.png)'
<figure>
<img src="Cat.png" />
<figcaption aria-hidden="true"></figcaption>
</figure>
@wlupton wlupton added the bug label Nov 27, 2024
@jgm jgm transferred this issue from jgm/pandoc Nov 30, 2024
@jgm jgm transferred this issue from jgm/commonmark-hs Nov 30, 2024
@jgm jgm closed this as completed in 561e1de Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant