# prettier-plugin-spark [Prettier](https://prettier.io) plugin for [spark-html](https://github.com/wilkinnovo/spark) single-file components. ## Why a dedicated plugin Spark components are a **hybrid** syntax — HTML-style quoted attributes (`:value="x"`, `onclick="{fn}"`) **and** Svelte-style `{interpolations}`. No built-in Prettier parser handles both without breaking your code: - The **`html`** parser treats `onclick="{fn}"` as a JS event attribute and rewrites it into broken multi-line JS, and it word-wraps string literals **inside** `{…}` (changing their value). - The **`svelte`** parser rejects Spark's quoted `:attr="…"` / `bind:x="…"`. Both can silently produce **invalid Spark**. ## What it does It honours Spark's core promise — *the markup you write is what runs* — by formatting only what's safe to format: - **`