How to easily compile a Word document with simple markdown and rich text?

I apologize for not following up sooner. I was very busy writing, but now I am starting to compile again. I also have a slightly better understanding of how Pandoc works, and I am working toward having a fully Scrivener+Pandoc workflow.

I have encountered this issue in several projects (no rich text, only Markdown) when compiling to Pandoc, as well as when compiling for MultiMarkdown and selecting either Scrivener’s “Default” or “Basic MultiMarkdown” formats. The resulting .md files always contain backslashes before the asterisks in the footnotes:

Title: Markdown Test
Author: 

Testing *Markdown* and rich text.[^fn1] And [^1]

[^1]: Here is my **footnote**. [Docs for footnotes are here](https://pandoc.org/MANUAL.html#footnotes)...

[^fn1]: Footnote with \*markdown\* and *rich text*.

Attached is the test project. I have deleted the user.lock file, but have not touched the scrivx file.

Markdown Test.scriv.zip (16.9 KB)


In case this information is helpful, this is how Better BibText (which I use for Zotero references) looks in the main text:

[@test2020]

This is how it looks in the footnotes:

\[@test2020\]

The backslashes appear here as well, and the resulting docx document does not have Zotero fields in the footnotes, only [@test2020] as plain text.

From your project I get the markdown passed through fine and the rich text is removed as expected:

Testing *Markdown* and rich text.[^fn1] And [^1]

[^1]: Here is my **footnote**. [Docs for footnotes are here](https://pandoc.org/MANUAL.html#footnotes)...



[^fn1]: Footnote with *markdown* and rich text.

This is working as I think it should on my system, so possibly this is a bug on Windows, @AmberV ?

Yes, this is a known Windows bug.

In early beta builds the rich text conversion switch was not built into the checkbox state properly and was always on. This remains true in inspector notes. As a workaround, one must use inline notation whenever they need to add Markdown to the exported text.

3 Likes