joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

Syntax highlighting of multi-line image captions (with references) #55

Open japhir opened 9 years ago

japhir commented 9 years ago

When I have an image caption with multiple lines and a reference in it, syntax highlighting is a little bit broken (it doesn't recognise it as an image caption anymore). I could obviously put it all on a single line and it would work, but look ugly in the buffer.

Pandoc recognises the multi-line caption well, but doesn't anymore if i put a space/return between the ] and the (.

![This is the image caption
it has multiple lines
and sometimes references
an @importantsource2015](linktoimage.jpg)
joostkremers commented 9 years ago

Yes, I see the problem. I'll see what I can do to fix it.