Repository navigation
v0.7.0
Minor Changes
-
744c744: Format embedded Astro, Dockerfile, Gherkin, Go Template, Handlebars, Hugo, Jinja, JTE, Liquid, Marko, Motoko, Mustache, Nunjucks, PowerShell, Solidity, Svelte, and XQuery in JavaScript and TypeScript template literals.
Install and load the formatter plugin for each language used. For example, Liquid uses
@shopify/prettier-plugin-liquid, and Dockerfile sharesprettier-plugin-shwith Shell:export default { plugins: [ "prettier-plugin-embed", "@shopify/prettier-plugin-liquid", "prettier-plugin-sh", ], };
Identify templates with a tag or a preceding block comment, and customize identifiers through
embedded<Language>Tagsandembedded<Language>Comments:const greeting = liquid`<p>{{ user.name | escape }}</p>`; const image = /* dockerfile */ `FROM node:24-alpine`;
Choose Solidity parsers with
embeddedSolidityParserand XQuery parsers withembeddedXQueryParserto match the installed formatter version.