In Part 1, we had a look at Markdown and the five or six formatting symbols that cover 97% of written fiction. Part 2, showed how you can use Markdown without leaving the comfort of Scrivener. Part 3 began exploring eBook publishing using files generated from both Scrivener and directly from MultiMarkdown.
Today, we’re going to take a brief look at a different tool you can use to publish MultiMarkdown files.
Pandoc describes itself as a Swiss Army knife for markup languages, but it goes farther than that. More than markup languages, it converts to and from common word processor formats and can even convert directly to EPUB. You can mess with templates to get the output really close to production-ready, but that's a little beyond the scope of our series here. In real terms, it’s not any faster than loading a prepared HTML file into a skeleton EPUB; both methods need a little cleanup afterwards.
This sounds at first like it’s just an alternative to using MultiMarkdown, but it goes a little farther than that. One problem with embedding HTML in your Markdown files, none of it gets converted to other formats. So you can’t just take your MultiMarkdown file and create an OpenOffice file by running:
multimarkdown --to=odf story.md >story.fodt
Because all your section breaks disappear. Pandoc ignores embedded HTML as well… so again, what does Pandoc buy you?
Well, once you have your HTML file, you can use Pandoc to convert that HTML file to the word processor format of your choice.
pandoc -f html -t odt -o story.odt story.html
And there’s the answer to how you make your story available for beta readers who want a word processor file. If you’re willing to tolerate some sloppy typesetting, you could use it for your print document as well. Pandoc also supports
rtfas output formats.
Now you can output your MultiMarkdown file in a number of formats, including eBook (direct and indirect) and common word processor formats.
Next week, we’ll look at some special features of MultiMarkdown that you might find useful.
Comments? Questions? Floor’s open!