Last Updated: February 25, 2016
· dperrymorrow

Render Markdown inside your Haml files

Recently I found myself writing several tedious pages, FAQ, Terms of Service, Privacy and so forth.

It was a Rails app, so I was already using Haml, but to make things even less terse, I wanted to use Markdown, that would enable be to paste from the copy deck, do some minimal formatting with Markdown, and be done.

Here is how

inside you haml file

%h1 Title of page

  Do all the markdown you want here...

  - list one
  - list two

   **My bold text**

  Now we are back to regular Haml

I hope this helps you like it helped me.
thanks for reading...