Skip to content

Releases: Enter-tainer/typstyle

v0.11.19

11 May 12:22
Compare
Choose a tag to compare

Changelog

v0.11.19 - [2024-05-11]

  • Typstyle now indent block math equations.

For example, this code:

$
E = mc^2
$

Now it will be formatted as:

$
  E = mc^2
$

v0.11.18 - [2024-05-09]

  • Typstyle now can keep line comments attached to the end of the line when formatting code blocks.

For example, this code:

#{
  let c = 0 // my comment
}

Previously, the comment will be moved to the next line after formatting. Now it's attached to the end of the line.

#{
  let c = 0 // my comment
}

v0.11.17 - [2024-05-03]

  • Fix typstyle cli not stripping trailing spaces.

v0.11.16 - [2024-05-01]

  • Fix comment loss in closure definition

v0.11.15 - [2024-04-22]

  • Fix comment loss in destruction and set rules

Previously for this code, the comment will be removed after formatting. Now it's kept.

#let (
// abc
a, b, c,
) = (1, 2, 3)


#set text(
  size: 10pt,
  fallback: false,
  // lang: "de",
)

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.18

09 May 14:13
Compare
Choose a tag to compare

Changelog

v0.11.18 - [2024-05-09]

  • Typstyle now can keep line comments attached to the end of the line when formatting code blocks.

For example, this code:

#{
  let c = 0 // my comment
}

Previously, the comment will be moved to the next line after formatting. Now it's attached to the end of the line.

#{
  let c = 0 // my comment
}

v0.11.17 - [2024-05-03]

  • Fix typstyle cli not stripping trailing spaces.

v0.11.16 - [2024-05-01]

  • Fix comment loss in closure definition

v0.11.15 - [2024-04-22]

  • Fix comment loss in destruction and set rules

Previously for this code, the comment will be removed after formatting. Now it's kept.

#let (
// abc
a, b, c,
) = (1, 2, 3)


#set text(
  size: 10pt,
  fallback: false,
  // lang: "de",
)

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.17

03 May 11:01
Compare
Choose a tag to compare

Changelog

v0.11.17 - [2024-05-03]

  • Fix typstyle cli not stripping trailing spaces.

v0.11.16 - [2024-05-01]

  • Fix comment loss in closure definition

v0.11.15 - [2024-04-22]

  • Fix comment loss in destruction and set rules

Previously for this code, the comment will be removed after formatting. Now it's kept.

#let (
// abc
a, b, c,
) = (1, 2, 3)


#set text(
  size: 10pt,
  fallback: false,
  // lang: "de",
)

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.16

01 May 03:56
Compare
Choose a tag to compare

Changelog

v0.11.16 - [2024-05-01]

  • Fix comment loss in closure definition

v0.11.15 - [2024-04-22]

  • Fix comment loss in destruction and set rules

Previously for this code, the comment will be removed after formatting. Now it's kept.

#let (
// abc
a, b, c,
) = (1, 2, 3)


#set text(
  size: 10pt,
  fallback: false,
  // lang: "de",
)

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.15

22 Apr 12:34
v0.11.15
18c7815
Compare
Choose a tag to compare

Changelog

v0.11.15 - [2024-04-22]

  • Fix comment loss in destruction and set rules

Previously for this code, the comment will be removed after formatting. Now it's kept.

#let (
// abc
a, b, c,
) = (1, 2, 3)


#set text(
  size: 10pt,
  fallback: false,
  // lang: "de",
)

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.14

19 Apr 13:57
v0.11.14
3d6a527
Compare
Choose a tag to compare

Changelog

v0.11.14 - [2024-04-19]

  • API Change: allow takes a typst::Source as input to avoid re-parsing

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.13

12 Apr 14:43
v0.11.13
d415de8
Compare
Choose a tag to compare

Changelog

v0.11.13 - [2024-04-12]

  • (#49) typstyle cli now support multiple input files. If multiple files are provided, they will be processed in order.
    This is especially useful when you want to format multiple files inplace with a single command.

    typstyle -i **/*.typ

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.12

09 Apr 12:46
v0.11.12
6b45860
Compare
Choose a tag to compare

Changelog

v0.11.12 - [2024-04-09]

  • Improve performance when formatting nested structures.

Previously it takes infinite time to format this code:

#let f(..arg) = arg

#f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(1,2,3))))))))))))))))))))))

Now it is done in instant.

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.11

05 Apr 05:33
v0.11.11
e5636ba
Compare
Choose a tag to compare

Changelog

v0.11.11 - [2024-04-05]

  • Fix set rules args are always spread into multiple lines. It now behaves like function call args.

For example, this code:

#set text(  font: body-font,
  lang: "zh",  region: "cn",
)

After formatting, it will become:

#set text(font: body-font, lang: "zh", region: "cn")
  • Fix flavor detection for function call args. It now works correctly when the first space in the args contains a newline.

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release

v0.11.10

02 Apr 11:51
v0.11.10
ce0c98f
Compare
Choose a tag to compare

Changelog

v0.11.10 - [2024-04-02]

  • Block math equations are no longer indented.
  • We now support flavor detection for block equations.

For example, this code:

$
  F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t
$

After formatting, it will become:

$
F(x) = integral_0^x f(t) dif t
$

$ F(x) = integral_0^x f(t) dif t $

v0.11.9 - [2024-04-01]

  • Trailing spaces are now trimmed.
  • Spread args/array/dict into multiple lines if the first space in it contains a newline. This enables flexible control over the formatting of spread args.
    This is called flavor detection.

For example, this code:

#let my-f(arg1, arg2,
  args: none) = {
  arg1 + arg2
}

#let my-f(arg1,
 arg2, args: none) = {
  arg1 + arg2
}

After formatting, it will become:

#let my-f(arg1, arg2, args: none) = {
  arg1 + arg2
}

#let my-f(
  arg1,
  arg2,
  args: none,
) = {
  arg1 + arg2
}

v0.11.8 - [2024-03-31]

  • Fix multiline string/single-backtick-raw-block being wrongly formatted
  • Fix missing trailing comma single element array destruct
  • Fix # is missing in some math environments

v0.11.7 - [2024-03-30]

  • Fix import rename being wrongly formatted

v0.11.6 - [2024-03-29]

  • Fix raw block that starts/ends with backtick is wrongly formatted
  • Add version string in --version output

v0.11.5 - [2024-03-28]

  • Fix long import item being spread across multiple lines
  • Fix bad formatting of destruct items
  • Enable formatting when line comment presents in code block

v0.11.4 - [2024-03-27]

  • Put clap and wasm-bindgen under feature flags to reduce binary size when use as a library

v0.11.3 - [2024-03-26]

  • Nothing new. Just testing ci auto-release

v0.11.2 - [2024-03-24]

  • Fix math attach and function call mis-formatting

v0.11.1 - [2024-03-21]

  • Read from stdin when no arguments are provided

v0.11.0 - [2024-03-18]

  • Initial release