Liquid comments containing Liquid replicating
panoply opened this issue · 0 comments
panoply commented
Description
This is a critical defect and needs to be addressed ASAP. Liquid comments containing Liquid code are not being ignored and instead replicated causes serious issues.
Example
Take the following example which is applying omitting code within Liquid comments.
Current
<!-- @prettify-ignore-start -->
{% comment %}
{%- render 'something' -%} {%- render 'something' -%} {% endcomment %}
{% endcomment %}
<!-- @prettify-ignore-end -->
Expected
{% comment %}
{%- render 'something' -%}
{% endcomment %}
Current Workaround
The current approach here is to wrap inline comment ignores:
<!-- @prettify-ignore-start -->
{% comment %}
{%- render 'something' -%}
{% endcomment %}
<!-- @prettify-ignore-end -->