Is there a way to include an HTML partial from a Markdown file with Jekyll?
Example:
File index.md
:
---
layout: default
title: Home
---
This is a [Markdown](http://daringfireball.net/projects/markdown/) file.
{% include foobar.html %}
File _includes/foobar.html
:
<ul>
<li>Foo</li>
<li>Bar</li>
</ul>
This unfortunately does not seem to work in my case.
For completeness, here is the entire content of my _config.yml
file:
encoding: utf-8
markdown: kramdown
baseurl:
<ul>
and</ul>
tags appear as plain text while the rest appears as code since it's indented with four spaces. – Tuning_config.yml
file. – Tuningul
was indented four spaces was the problem. In markdownline break + four space = pre>code
that's how I reproduced it. – Persons