Skip to main content

LiquidHTMLSyntaxError

Identifies LiquidHTML syntax errors.


The following examples contain code snippets that either fail or pass this check.

The example below is missing a closing bracket %}.

<a>unclosed
{% include 'muffin'
{% assign foo = 1 }}
{% unknown %}
{% if collection | size > 0 %}

<a>closed</a>
<Partial filePath="muffin" />
{% assign foo = 1 %}
{% if collection.size > 0 %}{% endif %}

Anchor to Disabling this checkDisabling this check

Disabling this check isn't recommended.


For backward compatibility with configuration files made for Theme Check v1.X.X, this check is also recognized in configuration files with the following names:

  • HtmlParsingError
  • SyntaxError

Was this page helpful?