Skip to content

Releases: g-plane/markup_fmt

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)

v0.6.0

02 Mar 03:06
v0.6.0
553f360
Compare
Choose a tag to compare

Features

  • Added preferAttrsSingleLine option. If enabled, attributes will be put on a single line as possible. Disabled by default.

v0.5.1

20 Feb 15:51
v0.5.1
41781ec
Compare
Choose a tag to compare

Fixes

  • Fixed Astro front matter edge detection. (fix #9)

v0.5.0

19 Feb 09:53
v0.5.0
77f518b
Compare
Choose a tag to compare

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

18 Feb 08:55
v0.4.1
ac66252
Compare
Choose a tag to compare

Fixes

  • Added missing items in config schema for new options added in v0.4.0.