Markdown Tag

Transform Markdown content written inline in your template. For when you just can't be bothered to write HTML or make another variable.

Example

<article class="mx-auto max-w-lg">
{{ markdown }}
# My Favorite Nickelodeon Shows

- Kenan & Kel
- All That
- Double Dare
- Wild & Crazy Kids
- Legends of the Hidden Temple
{{ /markdown }}
</article>
<article class="mx-auto max-w-lg">
<h1>My Favorite Nickelodeon Shows</h1>
<ul>
  <li>Kenan & Kel</li>
  <li>All That</li>
  <li>Double Dare</li>
  <li>Wild & Crazy Kids</li>
  <li>Legends of the Hidden Temple</li>
</ul>
</article>

Markdown considers indentation to be a code block. You’ll need to keep your content flush left or use the markdown:indentation tag.

Betterify this page on Github!