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

Ignore empty image captions #581

Closed
nichtich opened this issue Aug 3, 2012 · 0 comments
Closed

Ignore empty image captions #581

nichtich opened this issue Aug 3, 2012 · 0 comments

Comments

@nichtich
Copy link
Contributor

nichtich commented Aug 3, 2012

Empty image captions in Markdown seem to produce empty captions in other output formats too (tested with 1.9.3):

![](foo.png)

becomes

<div class="figure">
<img src="foo.png" /><p class="caption"></p>
</div>
\begin{figure}[htbp]
\centering
\includegraphics{foo.png}
\caption{}
\end{figure}

I don't think that empty captions are very useful. A more common use case are images without captions, which one cannot create with pandoc right now. I'd prefer to skip empty captions if possible in output formats by default or by a command line switch:

<div class="figure">
<img src="foo.png" />
</div>
\begin{figure}[htbp]
\centering
\includegraphics{foo.png}
\end{figure}
@jgm jgm closed this as completed in 3f913c0 Aug 4, 2012
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