You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compatibility gaps with Shopify Liquid: {%- endraw %} throws, escape_once double-escapes entities, numeric filters drop leading digits #995
1. Whitespace control on endraw throws "not closed"
Actual: {% raw %}{{ x }}{%- endraw %} -> Error: raw "{% raw %}{{ x }}{%- endraw %}" not closed, line:1, col:10 (same for {%- raw -%}{{ x }}{%- endraw -%}). {% endraw -%} works; only the {%- form fails.
Expected (Ruby Liquid): {{ x }}. Whitespace control is allowed on every tag, including endraw.
2. escape_once escapes entities other than the five it produces itself
3. Math filters turn strings with a numeric prefix into 0
Actual: "10px" | plus: 5 -> 5, "16px" | times: 2 -> 0, "3 items" | minus: 1 -> -1.
Expected (Ruby Liquid, which converts with String#to_i): 15, 32, 2. The same conversion makes "0x10" | plus: 0 give 16 in liquidjs and 0 in Ruby. toNumber uses +value || 0; reading the leading integer/decimal would match Ruby.
4. split: "" splits emoji into lone surrogates (minor)
Actual: {{ "😀ab" | split: "" | join: "|" }} -> "\ud83d|\ude00|a|b" (invalid UTF-16 halves in the output).
Expected (Ruby Liquid): 😀|a|b. truncate and slice already work by code point since #981; split with an empty separator does not.
Activity