0

I am trying to use Mammoth to convert a DOCX file with images to Markdown format:

mammoth git.docx --output-format=markdown > git.md

When I push the git.md to github and checked it. It shows no images

When I open git.md in text editor the following is used for image

![](data:image/png;base64,jasdkjh)
ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Santhosh
  • 9,965
  • 20
  • 103
  • 243

1 Answers1

0

I suspect GitHub doesn't like the inlined image data. Try providing an --output-dir:

By default, images are included inline in the output HTML. If an output directory is specified by --output-dir, the images are written to separate files instead. For instance:

mammoth document.docx --output-dir=output-dir

Existing files will be overwritten if present.

Community
  • 1
  • 1
ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257