2019-09-30 15:38:41 +03:00
|
|
|
<!--
|
|
|
|
Fixed kramdown code highlight rendering:
|
|
|
|
https://github.com/penibelst/jekyll-compress-html/issues/101
|
|
|
|
https://github.com/penibelst/jekyll-compress-html/issues/71#issuecomment-188144901
|
|
|
|
-->
|
2020-07-22 16:41:49 +03:00
|
|
|
{% if include.content contains '<pre class="highlight">' %}
|
|
|
|
{% assign content = include.content | replace: '<pre class="highlight"><code', '<code' %}
|
|
|
|
{% assign content = content | replace: '</code></pre>', '</code>' %}
|
|
|
|
{{ content }}
|
|
|
|
{% else %}
|
|
|
|
{{ include.content }}
|
|
|
|
{% endif %}
|