What happens
Importing a .docx that contains a picture, via File → Import (Word, HTML…)…, produces a Markdown link to an image file that is never written to disk:
There is no media/ folder and no image1.jpg. The image is silently lost and the document shows a broken image.
Steps
- Take any Word document with one picture in it. (Ours was a Google Doc downloaded via File → Download → Microsoft Word.)
- In Constly, File → Import (Word, HTML…)…, pick the file.
- The picture is a broken link.
Expected
The image is extracted next to the document, and the link points at it.
Cause
The import runs Pandoc without --extract-media, so Pandoc emits the reference it would have written but never writes the file. Running the same conversion by hand with the flag works:
pandoc mydoc.docx -t gfm -o mydoc.md --extract-media=./media
On our test document that gives a 1 KB .md next to a real 217 KB .jpg.
Affects
Any import format that can carry embedded images: docx, odt, rtf, epub.
Workaround
Run the Pandoc command above yourself until this is fixed.
What happens
Importing a
.docxthat contains a picture, via File → Import (Word, HTML…)…, produces a Markdown link to an image file that is never written to disk:There is no
media/folder and noimage1.jpg. The image is silently lost and the document shows a broken image.Steps
Expected
The image is extracted next to the document, and the link points at it.
Cause
The import runs Pandoc without
--extract-media, so Pandoc emits the reference it would have written but never writes the file. Running the same conversion by hand with the flag works:On our test document that gives a 1 KB
.mdnext to a real 217 KB.jpg.Affects
Any import format that can carry embedded images: docx, odt, rtf, epub.
Workaround
Run the Pandoc command above yourself until this is fixed.