Describe the bug
Right now any kind of {% content_for 'block', id: something, name: something %} parses the markup as a flat string. It should be something easier to manage in checks/complete/etc instead.
const ast: LiquidHtmlNode = toLiquidHtmlAST(`{% content_for 'block', type: "", id: "" %}`);
const tag = ast.children[0];
assert(tag.name === 'content_for');
// markup isn't a complex type, but a string! It means we need to do regex!
assert(typeof tag.markup === 'string');
Describe the bug Right now any kind of
{% content_for 'block', id: something, name: something %}
parses the markup as a flat string. It should be something easier to manage in checks/complete/etc instead.https://shopify.dev/docs/api/liquid/tags#content_for
Source
Expected behaviour
Actual behaviour
Additional context
render
tagAt the end of the day, we should be able to do "richer" completion and theme checks when it comes to that tag once we parse it better.