Prettier plugin that inserts Czech Unicode NBSP (U+00A0) after one-letter prepositions/conjunctions in HTML text nodes.
npm install @kittler/prettier-plugin-czech-nbspk, s, v, z, o, u, i, a
script, style, pre, code, noscript, svg, textarea, template
{{ ... }}
package.json
json
{
"prettier": {
"plugins": ["prettier-plugin-czech-nbsp"]
}
}
`
Then run Prettier as usual:
`
npx prettier . --write
`
$3
Input:
`
Byl jsem v Praze a v Brne.
`
Output:
`
Byl jsem v Praze a v Brne.
`
$3
This plugin targets HTML output produced by Prettier for:
- html
- vue
- svelte
- astro
- md, mdx (only in inline HTML)
$3
This plugin has no custom options. It runs automatically when the plugin is enabled.
$3
`
npm install
npm test
``