On a markdown page I would like to {% include %}
a piece of template into a paragraph, which contains an HTML container.
Markdown
Lorem ipsum dolor sit amet, consetetur {% include myContainer.html %} sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
myContainer.html
<div>
hello
</div>
There should actually be an additional first and blank line in the file (which unfortunately doesn't get displayed here).
output:
<p>Lorem ipsum dolor sit amet, consetetur</p>
<div>
<p>hello</p>
</div>
<p>sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
Jekyll automatically splits the text into two paragraphs.
desired output:
<p>Lorem ipsum dolor sit amet, consetetur <div>
<p>hello</p>
</div> sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>
_config.yml
markdown: kramdown
kramdown:
parse_block_html: true
input: GFM
How can I include the container as child of the text's paragraph without splitting it in two?
Thanks a lot!