// plugins
Lax Markup Plugin
Formats HTML, XML, SVG, Vue, Svelte, and Astro files via lax-markup, a formatter that only restructures markup where doing so cannot change how it renders.
Formats .html, .htm, .vue, .svelte, .astro, .xml, and .svg files.
This plugin uses the same "markup" configuration key as markup_fmt.
Install and Setup
In your project's directory with a dprint.json file, run:
dprint add bartlomieju/lax-markup
# or install from npm
dprint add npm:lax-markup
This will update your config file to have an entry for the plugin. Then optionally specify a "markup" property to add configuration:
{
"markup": {
// markup config goes here
},
"plugins": [
"https://plugins.dprint.dev/bartlomieju/lax-markup-x.x.x.wasm"
]
}
Configuration
See the plugin documentation.