This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
v1.1.0
What's Changed
-
Add support to broken templates in the Liquid parser by @karreiro in #177
-
Add support for Strict Liquid Markup parsing (#187)
-
Add support for dangling HTML nodes inside Liquid if statements (#186)
That is, the following liquid code no longer throws a LiquidHTMLParsingError
<div> {% if href %} <a href="{{ href }}"> {% endif %} <div class="content-wrapper"> <p>...</p> </div> {% if href %} </a> {% endif %} </div>
The heuristic we're going for is the following:
- Only supported inside a LiquidBranch (if,else,when)
- At most 2 of the same type (2 dangling open, or 2 dangling close)
Everything else still throws a LiquidHTMLParsingError. The idea is that those are likely errors, whereas the heuristic isn't.
Full Changelog: v1.0.6...v1.1.0