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
--
To convert the markdown-formatted
string to HTML in a Jekyll page, there are THREE WAYS
can be selected as below:
If you are using Kramdown, based on their doc you can do this:
## Some Markdown Title
Let's have a look. `snippet` _italic_ **bold**
The markdown
attribute:
Requirments:
DIV tag
..md
or .markdown
extension for the file
as .html files aren't sent to Kramdown for processing)There is a liquid extension filter called markdownify, it also can help you convert a Markdown-formatted string into HTML.
{{ "Renders as markdown. `snippet` _italic_ **bold**" | markdownify }}
jekyll-spaceship -