Export not working for DOCX and EPUB on Version 3.0.0 (1088)

Viewed 12

Hi Brett,
I'm so excited about Marked 3! (I'm on Version 3.0.0 (1088). I'm especially keen on the DOCX import/export. Converting DOCSx to Markdown works brilliantly (even converting comments and footnotes from the original DOCX). Wow.

But I'm getting an error message on multiple attempts to export vanilla-plain Markdown to DOCX:
"DOCX Export Failed: Failed to initialize zip archive"
Also get a "fail for EPUB"

However, these formats work for export:

test.textbundle
test.opml
test.pdf
test.html
test.rtfd

Is this a bug, or am I "holding it wrong"?

2 Answers

Sounds like a real bug. Can you turn on debug mode (Settings → Advanced → Debug Mode, set log level to All Messages). Then use Help → Open Debug Log. Then open a Markdown file and try the DOCX export again. Share the output in the debug log with me (you can paste it, but it might be easier to attach the log file itself).

I'm assuming there's something up with the bin/zip command on your system. What version of macOS are you running? And where are you saving the file to?

Edit: I think I found the issue. I built the whole system while working with the Paddle version, which isn't sandboxed, and hadn't sufficiently tested it with the sandboxed MAS version and was missing some security scoping for the zip creation. I was able to replicate locally and fixed the issue. Hopefully it will work for you with the 1090 release (1089 may be approved before I get 1090 submitted, so wait for 1090 before you expect a fix).

Thanks! I'm using the test-flight version. Otherwise, I'd switched to Setapp after being a long-time owner of the MAS version (and before that… Really: a long-time fan!)

I'm also hoping that I'll be able to get the Obsidian plugin working with this as well (which I'd given up on, you may recall) I'll stay tuned!