Releases: g-plane/markup_fmt
Releases · g-plane/markup_fmt
v0.19.0
Features
- Optimized quotes of attribute value in Jinja.
- Avoid multiline opening tag for single attribute.
- Always print end tag in single line.
- Added
.j2
extension for Jinja. - Allow
"postcss"
as style lang.
Fixes
- Fixed Jinja
set
assignment. - Removed special case of
<label>
tag. - Fixed Jinja interpolation in tag name.
- Fixed parsing Jinja comments in HTML tag.
- Fixed formatting expression with semicolon in Vue.
v0.18.0
Features
- Apply special indentation logic for dprint, and introduce new
scriptFormatter
option. - Added support of
quoteStyle
option of Biome.
Fixes
- Format Svelte snippet block as function declaration.
API Changes
- Type of
Hints::indent_level
was changed fromusize
tou16
.
v0.17.0
Features
- Expose indent level. (only for Rust users)
Fixes
- Fixed URL in comments inside front matter.
v0.16.0
Features
- Add line breaks in class attr accordingly.
Fixes
- Fixed Svelte 5 snippet block.
- Fixed Angular control after
@for
.
v0.15.1
Fixes
- Fixed formatting Vue
v-bind.modifier
.
v0.15.0
Features
- Added support of Svelte 5 snippet blocks.
Fixes
- Fixed script contains template nested interpolation.
- Fixed incorrect non-strict Svelte attributes.
- Fixed wrapping
style
attributes. - Fixed nested
<pre>
.
v0.14.0
Features
- Added support of Vento "trim previous" syntax.
- Added support of JSON-LD in
<script>
tag. - Added
ignoreFileCommentDirective
option. - Added support of Vento "trim next" syntax.
Fixes
- Fixed multiple statements in Vue directives.
- Fixed whitespaces in Svelte block end.
v0.13.1
Features
- Updated error message.
v0.13.0
Features
- Improved formatting Jinja blocks in attributes.
- Updated whitespace-sensitivity detection.
- Improved detecting comments in Astro expressions.
Fixes
- Fixed comments detection in Astro front matter.
- Fixed attribute name starts with Jinja tag.
- Fixed indented script tag with template literal.
- Fixed comments parsed as tags in Astro.
- Fixed comments stripped in Astro.
- Fixed Astro expr indent.
v0.12.0
Breaking Changes
- For Rust users: Parameters of closure in
format_text
have been changed. Also, read more about theHints
struct.
Features
- Added support of Jinja blocks and tags in attributes.
- Added support of Vento blocks and tags in attributes.
- Added
ignoreCommentDirective
option. - Added support of formatting
style
attribute with external formatter.