HI!
Currently, I'm implementing a third-party slider.
To make things a little bit easier I manager to insert a plain html code into markdown.
As for output I've set a custom template which is pretty simple, it's consists of a three parts:
- assets combination
- data output
- custom JS init
{% block stylesheets %}
{% do
assets.addCss('theme://css/some.css') %}
{% endblock %}
{{ assets.css()|raw }}
{% block javascripts %}
{% do
assets.addJs('theme://js/some.js') %}
{% endblock %}
{{ assets.js()|raw }}
<div id="slider" style="width:1000px;height:100vh;margin:0 auto;margin-bottom: 0px;">
{% block content %}
{{ page.content|raw }}
{% endblock %}
</div>
<script type="text/javascript">
$(document).ready(function() {
var url = '{{ theme_url }}';
$('#slider').slider({
..init code
});
});
</script>
The problem is that the code from markdown is wrapped into two tags:
<pre> and <code>
If I set html filter I get only two divs rendered.


