How do I loop over an object and output markdown as part of the loop in my jade template?
Here is my template file
block content
section.content
h1= title
p Welcome to #{title}
ul
each post in posts
li!= :markdown
post
Here is an example posts object
{
"post1": "#Hey\nHow are you?",
"post2": "#Hello\nworld"
}
But I don't seem to be able to get the markdown to work inside of the loop, I've read over the documentation and tried Googleing but don't seem to be able to find anything that doesn't require loading another library for markdown in the view when Jade already has it.