Markdown not showing up on Jekyll site?

Markdown is not converted to HTML.

_config.yml

# Build settings
markdown: kramdown
    input: GFM
# Permalinks
permalink:        pretty
encoding:         UTF-8

      

output in the interface

<article class="post-content">
<!-- Contents of md files here in plain text-->
</article>

      

+3


source to share


2 answers


As described in the kramdown syntax , you must enable parsing of labels in html block elements. There are two ways to do this:

Globally : in _config.yml add:

kramdown:  
  parse_block_html: true

      

or at the beginning of your markdown document (not in the yaml header):



{::options parse_block_html="true" /}

      

Locally : Add markdown="1"

to your html block to get markdown inside the highlighted block.

So, in your case, this will read:

<article markdown="1" class="post-content">
<!-- Contents of md files here in plain text-->
</article>

      

+3


source


I had this line:

markdown_ext: "markdown, mkdown, mkdn, mkd, md"



which ruined it

+1


source







All Articles