Skip to content

Releases: g-plane/markup_fmt

v0.15.0

30 Oct 14:22
v0.15.0
8f9baea
Compare
Choose a tag to compare

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

21 Oct 14:34
v0.14.0
48c2604
Compare
Choose a tag to compare

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

26 Sep 00:38
v0.13.1
1a085b4
Compare
Choose a tag to compare

Features

  • Updated error message.

v0.13.0

20 Sep 14:51
v0.13.0
bf6c7b4
Compare
Choose a tag to compare

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

14 Aug 00:01
v0.12.0
4b0169f
Compare
Choose a tag to compare

Breaking Changes

  • For Rust users: Parameters of closure in format_text have been changed. Also, read more about the Hints 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.

v0.11.0

19 Jul 14:28
v0.11.0
4c17f51
Compare
Choose a tag to compare

Features

  • Added support of front-matter in Vento.
  • Added support of Angular.

Fixes

  • Fixed comment detection in Astro front-matter.
  • Fixed self closing tag that has empty spaces.
  • Fixed whitespace line that is shorter than indent.
  • Fixed mixed quotes in native attribute in Jinja, Twig, Nunjucks and Vento.

v0.10.0

01 Jul 02:59
v0.10.0
7577e97
Compare
Choose a tag to compare

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

05 Jun 15:09
v0.9.0
28da3ac
Compare
Choose a tag to compare

Features

Fixes

  • Fixed unquoted attribute interpolation in Jinja and Vento.

v0.8.0

08 May 15:00
v0.8.0
e1a70ee
Compare
Choose a tag to compare

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

02 Apr 08:43
v0.7.0
66ccd12
Compare
Choose a tag to compare

Features

  • Added Nunjucks support.
  • Added Vento support.

Fixes

  • Fixed padding Jinja tags. (Close #13)
  • Fixed nested Jinja tags. (Close #14)