8000 commonmark_x reader with implicit_figures isn't checking whether the caption is empty? · Issue #10429 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
commonmark_x reader with implicit_figures isn't checking whether the caption is empty? #10429
Closed
@wlupton

Description

@wlupton

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0