From 242778a98d6f3b681625f883a1917b760f8f5acb Mon Sep 17 00:00:00 2001 From: mgt Date: Sun, 3 Nov 2024 16:27:47 +0800 Subject: [PATCH] chore: bump to v0.12.1 --- CHANGELOG.md | 17 +++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 389ba2d3..21b77043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## v0.12.1 - [2024-11-03] + +- Typstyle now keeps spaces around math-delimited when there is already space around it. This prevents a bug when removing the space can cause wrong format result. + +For example, this code: +```typst +$[ | | ]$ +``` + +Previous: + +```typst +$[| |]$ +``` + +Now it is fixed. + ## v0.12.0 - [2024-10-19] - Bump to typst v0.12.0 diff --git a/Cargo.lock b/Cargo.lock index 95e6754f..e56057a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3915,7 +3915,7 @@ dependencies = [ [[package]] name = "typstyle" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 77843cf5..caeef9d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typstyle" -version = "0.12.0" +version = "0.12.1" edition = "2021" authors = ["Wenzhuo Liu"] license = "Apache-2.0"