Markdown is not being convertedto HTML.
_config.yml
# Build settings
markdown: kramdown
input: GFM
# Permalinks
permalink: pretty
encoding: UTF-8
output in frontend
<article class="post-content">
<!-- Contents of md files here in plain text-->
</article>
As described in the kramdown Syntax you have to enable parsing of markdown in html-block elements. There are two ways to do this:
Globally: in your _config.yml add:
kramdown:
parse_block_html: true
or at the beginning of your markdown document (not in yaml-header) set:
{::options parse_block_html="true" /}
Locally: add markdown="1"
to your html-block, to get the markdown inside the block rendered.
So in your case that would read:
<article markdown="1" class="post-content">
<!-- Contents of md files here in plain text-->
</article>
I had this line:
markdown_ext: "markdown, mkdown, mkdn, mkd, md"
which was messing it up
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With