aaronwolen / pandoc-letter

Pandoc template for writing letters in markdown
GNU General Public License v3.0
409 stars 124 forks source link

Question: attachments? #24

Closed fisx closed 4 years ago

fisx commented 5 years ago

Hi, I would like to attach documents with something like this

![la lune](lalune.jpg "Voyage to the moon")

but i'm uncertain how to go about it, or if it is supported at all. if you help me figure it out i'd be happy to write a PR that adds a hint to the README.

big fan of pandoc-letter, thanks for writing and publishing it!

aaronwolen commented 5 years ago

This was an interesting question because I assumed what you propose would work out of the box but it doesn't...

The reason is pandoc converts markdown images with link text to a floating figure, which the latex letter class does not define. If you remove the link text it works fine, ie

![](lalune.jpg)

This definitely needs to be added to the docs!

big fan of pandoc-letter, thanks for writing and publishing it!

You're welcome!

aaronwolen commented 5 years ago

Should also note that this syntax works:

![](lalune.jpg){ width=50% }
fisx commented 5 years ago

works, thanks!