diff --git a/liquid_tags/pelicanhtml.tpl b/liquid_tags/pelicanhtml.tpl index dbba638..b32a52b 100644 --- a/liquid_tags/pelicanhtml.tpl +++ b/liquid_tags/pelicanhtml.tpl @@ -23,21 +23,21 @@ {%- endblock -%} {% block input %} -{% if "#" in cell.input %} +{% if "# " in cell.input %}
Expand Code
-{% elif "#" in cell.input %} +{% elif "# " in cell.input %}
Collapse Code
-{{ cell.input.replace("#\n", "") | highlight2html }} +{{ cell.input.replace("# \n", "") | highlight2html }}
{% else %}
-{{ cell.input.replace("#\n", "") | highlight2html }} +{{ cell.input | highlight2html }}
{% endif %} {%- endblock input %}