'Pandoc convert docx to markdown with embedded images
When converting .docx file to markdown, the embedded image is not extracted from the docx archive, yet the output contains {width="6.291666666666667in"
height="3.1083333333333334in"}
Is there a parameter that needs to be set in order to get the embedded pictures extracted?
Solution 1:[1]
Referring to the comment by gridtrak and the problem of an unnecessarily deep directory strucutre (e.g. media/media/image2.jpeg), use the current directory as path DIR, then a folder media is created within the current directory (e.g. media/image2.jpeg):
pandoc --extract-media=. input.docx -o output.md
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sgrubsmyon |
