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
:markdown
Do all the markdown you want here...
- list one
- list two
**My bold text**
%p
Now we are back to regular Haml
I hope this helps you like it helped me.
thanks for reading...
Written by David Morrow
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#