Releases: g-plane/markup_fmt
Releases · g-plane/markup_fmt
v0.10.0
Features
- Added support of some missing Jinja blocks.
- Optimized formatting children mixed with texts and elements.
- Avoid wrapping for multiple text-like nodes.
- Added support of frontmatter in Jinja/Twig/Nunjucks templates.
Fixes
- Fixed unstable formatting of interpolation in non-whitespace-sensitive tag.
v0.9.0
Features
- Added
doctypeKeywordCase
option.
Fixes
- Fixed unquoted attribute interpolation in Jinja and Vento.
v0.8.0
Features
- Added detailed source location in syntax error message.
- Optimized formatting text as one line as possible for better readability.
Fixes
- Fixed empty
<script>
and<style>
tag. - Fixed quotes in Vue directives with nested quotes.
- Fixed error message when formatting with external formatter.
- Fixed HTML quotes escaping in Vue directives.
- Fixed quotes in Vento attributes.
v0.7.0
v0.6.0
Features
- Added
preferAttrsSingleLine
option. If enabled, attributes will be put on a single line as possible. Disabled by default.
v0.5.1
v0.5.0
Features
- Added support for detecting JSON in
<script>
tag whose"type"
is"importmap"
or"application/json"
.
Fixes
- Fixed parsing and formatting nested template in Astro expressions.
- Fixed language in Astro
<script>
. (It should be TypeScript by default.) - Fixed line comments in Astro expressions.
v0.4.1
Fixes
- Added missing items in config schema for new options added in v0.4.0.
v0.4.0
Features
- Added Astro support.
v0.3.2
Fixes
- Fixed parsing Svelte attribute with
}
char.