Embedding Markdown in Jekyll HTML

后端 未结 7 468
一向
一向 2020-12-29 01:47

I\'m trying to nest markdown in an HTML file while using Jekyll. Is there a way to achieve something like the following?

# index.html

---
layout: default
--         


        
7条回答
  •  鱼传尺愫
    2020-12-29 02:32

    If you are using Kramdown, based on their doc you can do this:

    My text with **markdown** syntax

    And this way, the text within the div is rendered as markdown.

    Make sure to use the .md or .markdown extension for the file, as .html files aren't sent to Kramdown for processing!

提交回复
热议问题