I’m trying to render rich text from a metaobject using Shopify’s input settings. However, the rich text formatting does not seem to apply.
Here’s the code I’m using:
{{ item.body.value }}
Result:
{“type”=>“root”, “children”=>[{“type”=>“paragraph”, “children”=>[{“type”=>“text”, “value”=>“Metaobject rich text block”}]}]}
{{ item.body.value | metafield_tag }}
Result:
Liquid error: metafield_tag can only be used with a metafield drop
Since metafield_tag only works with metafields, it doesn’t seem applicable to metaobjects.
What’s the recommended way to render and format rich text from a metaobject? Are there any best practices or additional filters that should be used in this case?
Thank you in advance!