Mark Heckmann
Mark Heckmann

Reputation: 11431

Posiible to use pandoc with HTML containing base64 inline images?

I want to convert an HTML file containing base64 encoded images to DOCX. When I do this using pandoc the base64 images are not converted.

Is it possible to include the base64 images using pandoc?

Upvotes: 21

Views: 8414

Answers (2)

jlSta
jlSta

Reputation: 324

With last version, use

pandoc --standalone --embed-resources --metadata pagetitle="title" index.md -o index-out.html

Upvotes: 10

John MacFarlane
John MacFarlane

Reputation: 8937

See https://pandoc.org/MANUAL.html#option--self-contained

pandoc --self-contained --metadata pagetitle="title" index.md -o index-out.html

This feature was unavailable due to a bug, but has been fixed since May, 2014.

Upvotes: 25

Related Questions