Skip to content

Commit 69ddf40

Browse files
committed
Fix problem with liquid scripting
1 parent 0bbfc3f commit 69ddf40

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,6 @@ function transformGlimmer(ast, { env }) {
347347

348348
function transformLiquid(ast, { env }) {
349349
visit(ast, {
350-
HtmlElement(node) {
351-
node.source = ''
352-
console.log({node})
353-
},
354-
355350
AttrSingleQuoted(node, _parent, _key, _index, meta) {
356351
if (node.name !== "class") {
357352
return;

tests/plugins.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ let tests = [
220220
],
221221
[
222222
`{% if state == true %}\n <a class="{{ "sm:p-0 p-4" | escape }}" href="https://www.example.com">Example</a>\n{% endif %}`,
223-
`{% if state == true -%}\n <a class='{{ "p-4 sm:p-0" | escape }}' href='https://www.example.com'>Example</a>\n{%- endif %}`,
223+
`{% if state == true %}\n <a class='{{ "p-4 sm:p-0" | escape }}' href='https://www.example.com'>Example</a>\n{% endif %}`,
224224
],
225225
],
226226
}

0 commit comments

Comments
 (0)