In jekyll there's a markdownify
liquid filter which will parse the text to html according to standard markdown specifications. However I want to filter the text to the kramdown specifications so I can use kramdown features (such as classname, inline style etc..).
The default markdownify
filter doesn't parse kramdown, I have tried using kramdownify
, and I have already set the default markdown parser to kramdown in _config.yml
. Both to no avail.
Here's an example I want to achieve:
some-blog.md
---
layout: default
page_description: >
**kramdown formated text**
{: style="color: red"} // kramdown specification for inline style
---
default.html
{{ page.page_description | markdownify }}
Expected Output:
Actual Output:
Summary
kramdown does work in my blog post content. But it doesn't work anywhere else.