Tips: Setting up Scrivener to Compile MultiMarkdown

Back in August I wrote a post about using Literature and Latte’sScrivener as a complete Blogging System“. What I wasn’t expecting was how that post drummed up a lot conversation about MultiMarkdown and writing in Markdown in general. After going back and forth with you all (a genuine pleasure), I realized that I hadn’t really covered the process of exporting your MMD documents from Scrivener into clean, valid html for whatever web-based platform you were using.

I thought I’d take care of that now and write a companion piece on both setting up Scrivener to use Fletcher Penney’s MultiMarkDown and, once installed, how to easily compile your documents and export them as clean html that you can then copy and paste into the WYSWYG of your preferred blogging platform.

First, let’s get MultiMarkdown installed (if you don’t have it installed already)…

Markdown Export

One thing I failed to mention in that original post was that you actually may not have MultiMarkdown installed on your computer. I say this, because I didn’t. The easiest way to tell (without using the command line)? Open Scrivener, click the Compile button and hit the drop down at the bottom. If you see just “MultiMarkdown” as an option and nothing else, you don’t have everything you need to compile your MMD document into html.

Here’s what you need to do (don’t worry, it’s easy I promise):

  1. Go to Fletcher Penney’s MultiMarkdown downloads page and grab the install that matches the OS you are using on the computer in front of you. I usually download to my desktop to find it easier.
  2. Unzip the file that downloads and double-click the installer within.
  3. Follow the onscreen directions to complete the install.

That’s it! Told you it was easy.

What now?

If you had Scrivener open prior to the download, save your project and quit. Now re-open Scrivener and you should now see a whole new host of MultiMarkdown options under the drop down at the bottom of the “Compile” menu!


For most of you, the “MultiMarkdown -> Web Page (.html)” option is all you need. Click that and then click the “Compile” button. Again, I like to save the exported .html doc to my desktop to find it easily, but feel free save the document wherever you like and open it in a text editor. To do this, right-click your new .html file and choose an editor like Textmate, Coda or even good old Notepad. Once open, you’ll see that all of your MultiMarkdown has now changed from this:


To this:


The code you are interested in (unless your working with a static HTML-based site) is within the opening and closing body tags (<body></body>). Copy that code and post it into your site’s editor. When you do this, make sure you are in HTML mode in your site’s editor (in WordPress it’s under the “Text” tab), otherwise you’ll end up with a post contains all of your text as well as all of the html tags. Trust me, it looks funny and broken when you do it.

Hey, this is great! Thanks! But what’s the point to all of this?

Well, put simply, WYSIWYG editors have come a long way over the years, but they are still far from perfect.

If you’ve ever written a post, pasted it into the editor of your site and spent the next hour cleaning up code the editor thought you wanted, you probably wouldn’t want to write on your web site again for a while. On the flip side though, these same web site editors will just about always take clean and valid html code and render it correctly – displaying everything just as you’d expect. Still, trying to write in html (not to mention valid html) is a pain in the butt too – we shouldn’t have to frankly – and, luckily, with Markdown we don’t have to.

That’s why it’s so damn convenient that Scrivener supports it!

What this post didn’t cover. (aka: I smell a series comin’ on!)

I didn’t go over actually writing in Markdown.

I am assuming if you read this far, you already know how to write in Markdown (which lends easily into MultiMarkdown) and that wasn’t really the point of the this post anyways.

If there is interest, I’d be happy to write another post on how I write in, and rely intrinsically on, Markdown for all of my web publishing. If you’d like to hear more, leave any specifics in the comments below (even if it’s just a “Yes please!”) and I will do my best to accommodate them in a future post.

Hope you found this useful! Now get back to blogging in Scrivener!

Writing: Scrivener as a complete Blogging System

About a month after I used Scrivener to finally finish a novel I started years ago, I got the idea of trying to use it as not only a staging area for posts here on my blog, but also as an infrastructure and archive of it as well. My system is admittedly quite basic, but I thought I would share it as it’s become critical and amazingly helpful since I’ve set it up. I figured the more basic it is now, the easier it would be for you all to adopt; modifying it to fit your needs.

Here goes…

Each Project is a Year

Project Year

Start a new project in Scrivener (File > New Project or shift-command-N on the Mac), choose a project template (whatever you are used to), and change the title to the year you are writing in. I originally thought I would call it “Posts” but, for me anyways, it quickly became too unwieldy and chaotic. I wanted this system to be simple yet powerful, not muddied with years of content.

Each Month is a Folder

Folder Month

I chose to break my posts into months but it would be just as easy to make each folder a site topic or category. I personally like months because I can generally remember about when chronologically I wrote a post. Also, if I search my blog and find it, it makes the post that much easier to find in my Scrivener project.

This is also a great opportunity to shift to corkboard view and add notes to each month so that you can either see what you wrote about at a glance, or maybe attach a note about a life event that occurred that effected your writing at the time. It’s up to you (obviously). Sometimes I don’t add anything, but I am glad I have the option when I do.

Believe it or not, this is the core structure of my blog writing system in Scrivener – a project is a year, a month is a folder.  Once this is set up, open the month you are currently in and create a new document.

Each Document is a Post

Document Posts

Here’s where your writing comes in. You can keep it simple and write the entirety of your post, save it, and then copy and paste the text into your blog of choice. Or you also have the opportunity to leverage Scrivener to its fullest! A lot of folks use Scrivener for short and long form writing and they should, there’s nothing out there that is better for that. But one of Scrivener’s secret weapons is its ability to export MultiMarkDown into clean and precise html. Which is perfect for a blog’s built-in text editor.

If you are familiar with markdown syntax, it’s a huge shortcut for exporting your writing easily into perfectly formatted html code (what your browser reads and translates into a web page). If you are interested in learning it, you can find everything you need to know right here. The learning curve is far from steep and it could save you a ton of time going forward.

*UPDATE* 09/27/13 – If you are interested in getting Scrivener setup to export MMD markup, I posted a companion piece to this post walking you through how to do so.  You’ll find it right here.

Markdown Export

Of course if you are not into learning that kind of stuff, that’s cool too. You don’t have to. A lot of blogging platforms handle copy and pasting text from word processors into their WYSIWYG editors quite well now, parsing your pasted text into HTML the best that it can. Still, the clean code that Markdown generates eliminates a lot of guess-work (and potential html clean up when a blog editor translates your text incorrectly) and I am immensely grateful that the kind folks at Literature and Latte had the foresight to see a need for it from their customers.

Ok, enough about my love of markdown! There are other tools you can leverage that cater very nicely to blogging. Many of these I am sure you are already familiar with, but I figured I’d hit them anyways.

Word Targets

Word Target

When I blog I like to set a word count target. Generally in Scrivener this is a goal for you to strive for, but with blogging it’s particularly great to know when you should start wrapping things up or stop completely and jump into edit mode. I like to think of it as the warning track on a baseball field giving you a heads up before your run head-long into a wall, or in the case of blogging, becoming too verbose.

Synopsis and Document Notes

Synopsis Notes

I often like to use the coveted right column in Scrivener to add notes, reference external links/topics, or even other posts that this post is linked to on my blog… just about anything else that is useful to you the author, but not necessary for your readership.

It’s a little extra work for you, but helpful at-a-glance down the road.

Corkboard View For Your Posts

corkboard view

This is something that, once you use it, you are always giving yourself a high-five in the future for doing so. I can’t tell you how many times this view in Scrivener has saved me from digging into pages and pages of text to find that one post that I wrote about topic “X”.

On each card, I add the date it was posted and a very brief synopsis. Make it part of your workflow, you will not regret it.

ProTip – if you do utilize Scrivener’s right column and fill out the synopsis field, the cork board view uses that text as the content displayed on the card.



I may be getting a little too much “in the weeds” on this one but, I thought I’d throw it out there nonetheless. As you add more and more posts, you may want to consider assigning meta-data or “tags” to the content you produce. This will help organize your content a lot more efficiently and make it all infinitely more searchable in the future.

Start with broad topics and then hone in from there.

Many of you won’t need this, but Scrivener does such a bang-up job of its implementation of it, I thought I’d mention it.

What You End Up With

As with my long-form writing, Scrivener provides me with a one-stop-shop writing platform for my blog. If it could actually export to my blog (WordPress), that would be amazing! But don’t let that tiny quibble keep you from trying this idea out. With a little bit of groundwork applied up front, you get all of your writing organized and searchable, post by post, month by month, year by year.

One last perk? Exporting a project and getting an entire year’s worth of posts in pdf or epub format. Flipping through a retrospective of the last 365 days of your creative life is surprisingly satisfying to view on a tablet or even printed out if you want to feel the literal weight of your work.

Sort of like a yearbook for your blog! Only without the awkward interactions of asking for classmates to sign it. ;)