martisak / pandoc-shortcaption

Adds pandoc filter for short LaTeX captions.
GNU General Public License v3.0
5 stars 3 forks source link

Rendering of percent sign in caption #1

Open fungs opened 7 years ago

fungs commented 7 years ago

Hi and thanks for your wonderful filter for pandoc. I noted that, using your filter, the percent sign causes troubles when rendered in latex. I have to use a double escape '\%' in order to get this symbol rendered as it would with plain pandoc.

mparker2 commented 6 years ago

thanks for the very useful filter. I have noticed the same issue as @fungs, this seems to occur for both the percent sign and ampersand.

martisak commented 6 years ago

Thank you for reporting this. I have not had time to work on this (as you might have noticed), but I will have a look as soon as I am able.

mparker2 commented 6 years ago

No worries! I realised that there were a few other issues of not rendering markdown features like bold, italic or code etc in the captions too, so I ended up forking and making some additions. If you'd like I can submit a pull request at some point. I actually didn't fix the original problem yet though, I just double escaped all the &s and %s in my markdown