Ignore LiquidHTMLParsingError #183
-
Is there any way I can ignore this rule? We have a block that, depending on the number of blocks within it, will conditionally render either a swiper or just a regular layout. The problem is it means closing an if statement before we close the ending as the code will look something like this: {%- if section.blocks.size > 1 -%}
<div class="swiper">
{%- else -%}
<div class="not-a-swiper">
{%- endif -%}
The rest of the content
</div> So it's weird-looking code but it works. Unfortunately though this plugin throws an error:
and so the formatting doesn't work for the rest of the code. I tried using this:
but it doesn't actually seem to work in this case (a bug? maybe I wrote it wrong?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
👋 You can check this issue for more context: It's still on our radar, but got to juggle priorities. A solution for this is coming... |
Beta Was this translation helpful? Give feedback.
👋 You can check this issue for more context:
#90
It's still on our radar, but got to juggle priorities. A solution for this is coming...