Block helper for embedding markdown content inside HTML, and rendering it to HTML at build time.
Template:
<h1>My Blog</h1>
{{#markdown}}
## Post of the day
Vestibulum posuere, quam sed bibendum posuere
Pellentesque habitant morbi tristique senectus
Pellentesque nulla augue, volutpat vitae
Read more...
In hac habitasse platea dictumst. Morbi non rutrum risus.
{{/markdown}}
Renders to:
<h1>My Blog</h1>
<h2>Post of the day</h2>
<p>Vestibulum posuere, quam sed bibendum posuere
Pellentesque habitant morbi tristique senectus
Pellentesque nulla augue, volutpat vitae</p>
<a href="https://github.com/assemble/jonschlinkert">Read more...</a>
<p>In hac habitasse platea dictumst. Morbi non rutrum risus.</p>
Include markdown from specified file(s), and render it to HTML
Template:
{{md "file/to/include/post.md"}}
Any content inside the "included" markdown file will be rendered as HTML.
See the template for this page →
Find an error? Let us know →