Jekyll doesn't render Markdown when adding HTML

后端 未结 2 1056
自闭症患者
自闭症患者 2021-01-06 06:13

I have this markdown code in a Markdown file. It has inline HTML.

---
layout: page
title: About This Website
permalink: /about/
---


This website is built w         


        
2条回答
  •  梦毁少年i
    2021-01-06 06:36

    If you put your markdown inside an HTML block tag (e.g. div) than you have to allow markdown conversion (the default is off). In kramdown (the default for Jekyll 3) use the markdown="1" attribute. Example:

    This is a list: - Item 1 - Item 2 - Item 3

    PS: Good question. I have added your question to the Jekyll F.A.Q. Cheers.

提交回复
热议问题