I have a Jekyll website, with Posts written in Markdown using the Kramdown parser.
I would like to add some raw HTML within the post. However when I try to add the HTML, it parses it as markdown (changing <
's to <
for example).
I have tried:
.html
file.markdown="0"
to the HTML tag (also tried 1
).Example of what I have:
Some **markdown** `here`
<iframe src="asd"></iframe>
More *markdown*.
The iframe should be output as HTML, not parsed text.
I am using Github pages, so Jekyll extensions are not optional.
Your Jekyll pages consist of HTML, CSS, and JavaScript, so pretty much any code you need to embed will work without a problem.
Raw(Object) Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup. Raw(String) Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup.
By default, Jekyll uses the kramdown Markdown processor with stock settings, but you can enable other kramdown options or even switch Jekyll to another Markdown processor. See the Jekyll Markdown configuration options documentation for more information.
The HTML was being ignored because some tag attr's did not have quotes. For example width=500
should have been width="500"
Nothing else was required. The HTML is in its own paragraphs with no indentation and it is parsed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With