diff --git a/CHANGELOG.md b/CHANGELOG.md index f4bb480..aa6e4a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,35 @@ +1.1.0 / 2023-05-26 +================== + + * Add support for Strict Liquid Markup parsing ([#187](https://github.com/shopify/prettier-plugin-liquid/issues/187)) + * Add support for dangling HTML nodes inside Liquid if statements ([#186](https://github.com/shopify/prettier-plugin-liquid/issues/186)) + + That is, the following liquid code _no longer_ throws a LiquidHTMLParsingError + + ```liquid +
+ {% if href %} + + {% endif %} + +
+

...

+
+ + {% if href %} +
+ {% endif %} +
+ ``` + + 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. + 1.0.6 / 2023-01-18 ================== diff --git a/package.json b/package.json index 3ce5bc8..76bc1ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/prettier-plugin-liquid", - "version": "1.0.6", + "version": "1.1.0", "description": "Prettier Liquid/HTML plugin by Shopify", "repository": "shopify/prettier-plugin-liquid", "author": "CP Clermont <@charlespwd>", diff --git a/playground/index.html b/playground/index.html index 6229de8..713aa44 100644 --- a/playground/index.html +++ b/playground/index.html @@ -21,7 +21,7 @@ } const unpkgUrl = - 'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.0.6/standalone.js'; + 'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.1.0/standalone.js'; if (/localhost|127.0.0.1/.test(window.location.href)) { const script = getScript('assets/standalone.js'); script.onerror = () => { @@ -53,7 +53,7 @@

href="https://github.com/shopify/prettier-plugin-liquid/blob/main/CHANGELOG.md" target="_blank" rel="noreferrer noopener" - >v1.0.6v1.1.0