How can I convert my book to MultiMarkdown (MMD)?

kay's Avatar

kay

20 May, 2016 06:03 PM

The book Iā€™m writing in Scrivener has until now been composed in rich text ā€” with italics, curly quotation marks, and block quotes.

Now I need to convert it to MultiMarkdown. There appears to be no simple way to accomplish this. For example, I must replace each instance of italics with *text*.

The first part I need to do has 20+ documents (22,000 words).

Does anyone have an automated technique for converting rich text to MultiMarkdown?

  1. Support Staff 1 Posted by fletcher on 25 May, 2016 02:12 PM

    fletcher's Avatar

    I would look into pandoc. It doesn't necessarily support 100% of
    MultiMarkdown's features, but it does support basic Markdown and a few
    extra features.

    It also supports two-way conversion of a few formats. I believe it has
    support for RTF in this way, but have not tested it myself.

    Fletcher

  2. 2 Posted by Larry Kollar on 17 Feb, 2017 04:14 AM

    Larry Kollar's Avatar

    In Scrivener, go Format menu -> Convert -> Bold and Italics to MultiMarkdown Syntax

    If you use typewriter font (for example, to highlight a text message), you need to (re)define a preset to make it "Preserve Formatting." When you export to MMD, Scrivener automatically puts backticks around that text.

    I'm working on a blog post that explains, in great detail, how to prepare a Scrivener project for MMD. The cool thing is, you can keep it in Scrivener and still have MMD.

  3. 3 Posted by Larry Kollar on 17 Feb, 2017 04:36 AM

    Larry Kollar's Avatar

    In Scrivener: Format menu -> Convert -> Bold and Italic to MultiMarkdown Syntax

    Your block quotes need to start with a > in each paragraph, and turn off Preserve Formatting unless you want them output as code blocks. Scrivener doesn't have an automated way to do that, but you probably don't have too many of them.

    I'm working on a blog post that goes into detail on exporting clean MultiMarkdown from Scrivener.

  4. fletcher closed this discussion on 22 Aug, 2017 01:19 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ā†© Submit the comment

You can use Command āŒ˜ instead of Control ^ on Mac