-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Don't output \caption in LaTeX when image alt text is empty #2844
Comments
The change you suggest would mean that uncaptioned images don't get labels, even if an ID is specified. |
Sorry, not sure I understand exactly what you mean. Do you have an example? |
With the proposed change, you won't get |
Does the following look better? If not please don't hesitate to just fix it and commit, as I'm really not familiar with Haskell, and not much with Pandoc either :) Thanks!
|
On reflection, I guess that without But that raises the question what behavior would be better. +++ Adrien Cunin [Apr 20 16 06:28 ]:
|
Hi, |
Fixing this by requiring a non-empty caption for |
Note: you'll now get no figure at all (not just a figure without a |
Tested with .md as input, LaTeX/Beamer as output.
![](image.png)
will generate\caption{}
.This is a regression according to https://groups.google.com/forum/#!topic/pandoc-discuss/9H_3h20ILj0. Maybe in commit d81b435.
Proposed patch on master:
Not tested, but I successfully tested a similar patch for the pandoc version that's running on my laptop.
The text was updated successfully, but these errors were encountered: