Mostly technical stuff with some interesting moments of life

Blogging with Markdown in Blogger

12 comments
tl;dr - Use Dillinger and paste the formatted content directly to blogger
Recently, I tried many techinques, which will allow me to write blogs in markdown. The available choice in broad categories are,
  • Use makrdown aware static blog generator such as Jekyll or something based on it like Octopress
  • Use a blogging solution based on markdown such as svbtle
  • Use a tool that'll either enable markdown support in blogger (see this post) or can post to blogger (like StackEdit)
First is the obvious choice if you need total control over your blog, but I didn't want to get into too much trouble just to blog because it involes hosting the generated static html pages on your own - not to mention the trouble of enabling comments. I like the second solution from and went the distance to even move my blog to svbtle. It's pretty simple and straightforward, but after doing a post or two I realized the lack of comments is a showstopper. I agree it's good for posts intended for "read only" use, but usually it's not the case for me.
This is when I started investigating on the third option and thought StackEdit to be a nice solution as it'll allow posting to blogger directly. However, it doesn't support syntax highlighting for code blocks - bummer!
Then came the "aha!" moment. I've been using Dillinger to edit markdown regularly as it's very simple and gives you instant formatted output. I thought why not just copy the formatted content and paste it in the blog post - duh. No surprises - it worked like a charm. Dillinger beatifully formats everything including syntax highligting for code/scripts. Also, it allows you to link with either Dropbox or Github where I use Github.
All in all, I found Dillinger to be the easiest solution and if you like to see a formatted post see my first post with it.

12 comments :

  1. Great post... I tried Dillinger and Stackedit but when I pasted it into my blog the formatting was not working out. Stackedit also has an option where you can publish directly to Blogger from their page, but that also did not work.

    I eventually found http://markable.in/, and it works for me.

    ReplyDelete
    Replies
    1. Thanks Victor. markable seems nice too!

      Delete
  2. Thanks for the great post. It gives a structured overview of the possible options.

    I personally choose to use Jekyll + poole hosted on Github pages. As a guide I used this post: http://joshualande.com/jekyll-github-pages-poole/

    ReplyDelete
  3. This is what I was looking for. Thank you.

    ReplyDelete
  4. As a suggestion why not just use github gists, and not blogger for posting code related stuff...

    ReplyDelete
    Replies
    1. Gists are good, but I wanted to use md for everything, not just code snippets.

      Delete
  5. Good post! Spent some time trying this and Dillinger did the trick.

    ReplyDelete
  6. Thanks for the post! I also struggled (for hours) and I stumbled on a solution: when I upload markdown documents I make in R to bitbucket, I can copy/paste that code to Blogger. My guess is that this works in GitHub as well.

    ReplyDelete
    Replies
    1. Yes, that works. I like medium.com now over blogger

      Delete
  7. Fantastic information. Thanks a lot.

    ReplyDelete