vscode-markdown-preview-enhanced icon indicating copy to clipboard operation
vscode-markdown-preview-enhanced copied to clipboard

[BUG] Unable to import ebook with viz chart in Kindle DIrect Publishing

Open miskovics opened this issue 1 year ago • 1 comments

Describe the bug In contrast to "All SVG graph generated by mermaid, PlantUML, etc will not work in the ebook generated. Only viz works." on https://shd101wyy.github.io/markdown-preview-enhanced/#/ebook?id=ebook-convert-arguments, even viz (dot) doesn't work, i.e. neither the Kindle Direct Publishing website, nor the Kindle Previewer 3 application accept .epub generated by Markdown Preview Enhanced for a Markdown file which includes a dot graph.

Environment

  • OS: macOS 14.2.1 (23C71)
  • VSCode: 1.85.2
  • Markdown Preview Enhanced: 0.8.11

To Reproduce Steps to reproduce the behavior:

  1. Load attached ALICE.md
  2. Export > eBook > ePub
  3. Import ALICE.epub (also attached zipped: ALICE.epub.zip) in Kindle Previewer 3 or on the Kindle Direct Publishing website.
  4. See error

Expected behavior Generated .epub is accepted without problem.

Markdown file ALICE.md

Screenshots

Additional context Without graphs the .epub is accepted. Original ALICE.epub with jpg files is accepted. It seems the problem is that the dot (and other) graphs are rendered as SVG which is not accepted by Amazon.

miskovics avatar Jan 22 '24 18:01 miskovics