This repository was archived by the owner on Jun 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed
Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 11
2+ 1.1.0 / 2023-05-26
3+ ==================
4+
5+ * Add support for Strict Liquid Markup parsing ([ #187 ] ( https://github.com/shopify/prettier-plugin-liquid/issues/187 ) )
6+ * Add support for dangling HTML nodes inside Liquid if statements ([ #186 ] ( https://github.com/shopify/prettier-plugin-liquid/issues/186 ) )
7+
8+ That is, the following liquid code _ no longer_ throws a LiquidHTMLParsingError
9+
10+ ``` liquid
11+ <div>
12+ {% if href %}
13+ <a href="{{ href }}">
14+ {% endif %}
15+
16+ <div class="content-wrapper">
17+ <p>...</p>
18+ </div>
19+
20+ {% if href %}
21+ </a>
22+ {% endif %}
23+ </div>
24+ ```
25+
26+ The heuristic we're going for is the following:
27+
28+ - Only supported inside a LiquidBranch (if,else,when)
29+ - At most 2 of the same type (2 dangling open, or 2 dangling close)
30+
31+ Everything else still throws a LiquidHTMLParsingError. The idea is that those are likely errors, whereas the heuristic isn't.
32+
2331.0.6 / 2023-01-18
334==================
435
Original file line number Diff line number Diff line change 11{
22 "name" : " @shopify/prettier-plugin-liquid" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.1.0 " ,
44 "description" : " Prettier Liquid/HTML plugin by Shopify" ,
55 "repository" : " shopify/prettier-plugin-liquid" ,
66 "author" : " CP Clermont <@charlespwd>" ,
Original file line number Diff line number Diff line change 2121 }
2222
2323 const unpkgUrl =
24- 'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.0.6 /standalone.js' ;
24+ 'https://www.unpkg.com/@shopify/prettier-plugin-liquid@v1.1.0 /standalone.js' ;
2525 if ( / l o c a l h o s t | 1 2 7 .0 .0 .1 / . test ( window . location . href ) ) {
2626 const script = getScript ( 'assets/standalone.js' ) ;
2727 script . onerror = ( ) => {
5353 href ="https://github.com/shopify/prettier-plugin-liquid/blob/main/CHANGELOG.md "
5454 target ="_blank "
5555 rel ="noreferrer noopener "
56- > v1.0.6 </ a
56+ > v1.1.0 </ a
5757 > </ span
5858 >
5959 </ h1 >
You can’t perform that action at this time.
0 commit comments