Releases: g-plane/markup_fmt
Releases · g-plane/markup_fmt
v0.23.3
v0.23.2
Fixes
- Added missing "j2" extension for Jinja.
- Fixed parsing Angular ICU expression.
- Fixed detecting root when formatting
<script>
tag. - Fixed formatting
<style>
tag for Sass.
v0.23.1
Fixes
- Ignore SVG tags when converting Vue component case.
v0.23.0
Features
- Added
angularNextControlFlowSameLine
option. - Added support of formatting Jinja expression and statement with external formatter.
- Don't insert line break inside attribute value. We received some feedback about previous behavior, and this change may affect existing code layout.
- Added
vueComponentCase
option.
Fixes
- Fixed unmatched quotes in Astro front matter.
- Fixed unexpected whitespaces for non-Astro code.
v0.22.0
Features
- Added Mustache support.
- Added support of Astro template literal attribute.
Fixes
- Fixed Astro expression and template indentation.
v0.21.0
Features
- Added support of Svelte optional
each
binding. - Never wrap opening tag with no attributes.
- Improved error message of missing close tag.
- Added support of Svelte
{@attach}
syntax. - Added support unquoted attribute value recovery for Jinja tags and blocks.
- Added XML and SVG support.
- Optimized inline elements.
Fixes
- Removed unexpected whitespace in whitespace-insensitive tag.
- Fixed TS
as
syntax in Svelte each block.
v0.20.0
Features
- Support optional binding in Svelte await block.
- Added
singleAttrSameLine
option.
Fixes
- Fixed Jinja whitespace control modifiers.
v0.19.1
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
.