build: bump tinymist to 0.12.0-rc1 (#708)

* feat: support nightly typst (#600)

* feat: support for custom certificate configuration (#592)

* feat: add certificate option

* refactor: move SystemCompilerFeat into tinymist-world

* feat: move HttpRegistry as HttpsRegistry into tinymist-world

* feat: add reading pem file

* feat: update LspUniverseBuilder::build

* feat: fill missing argument of LspUniverseBuilder::build

* chore: update lock file for additional dependencies

* chore:  refine comment for certification

* refactor: simplify by new constructor

* refactor: sort arguments for threaded_http

* refactor: split https.rs from lib.rs in tinymist-world

* feat: provide package view and local documentation (#596)

* feat: move featured components

* feat: provide package view and local documentation

* stage

* fix: compile error by merged commits

* fix: ignore system fonts correctly (#597)

* feat: adapt nightly typst

chore: use mainline typst

fix: `leaf_at` second parameter

fix: build `Engine`

fix: `interpret_mode_at` converage

feat: use my typst

fix: use `typst::trace` to trace

fix: frameitem

fix: new kinds

fix: new scope

fix: lazyhash

fix: result

fix: new SyntaxKinds

fix: utils, lazyhash

chore: remove useless imports

fix: sink

feat: frameitem

fix: export svg with page

fix: deref span

styl:

deps

fix: lazyhash

deps: use my typstyle

fix: enable contenthint with feature

fix: leaf_at side

fix: compile.output

deps

fix: warnings

deps: use new branch name

fix: fix merge error

ci: update ci branch

test: accept new test snap

fix: fix compile

deps: update typst

fix: fix compilation for latest tinymist

fix: fix tests

fix: fix tests

* chore: clean useless imports

---------

Co-authored-by: ricOC3 <100465762+ricOC3@users.noreply.github.com>
Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>

* fix: compile warnings and errors

* fix: add round_2 back

* fix: pdf options

* build: bump version to 0.11.33

build: bump version to 0.11.31 (#652)

build: lock git branches

build: bump version to 0.11.23-rc1

dev: update cargo.toml

deps: update typst, typst.ts, typstyle to tagged version (#624)

build: bump version to 0.11.29 (#628)

dev: nightly-0.11.31 (#649)

* deps: update typst

* test: fix snapshot

fix: dependencies

dev: nightly 0.11.33 (#655)

* deps: update typst, typst.ts, typstyle

* test: fix test hash

* fix: compile error

* fix: errors

* build: bump typst to 0.12.0

* dev: final bumps

* build: bump version to 0.11.34-rc1

* build: update cargo.lock

* test: update snapshot

---------

Co-authored-by: ParaN3xus <136563585+ParaN3xus@users.noreply.github.com>
Co-authored-by: ricOC3 <100465762+ricOC3@users.noreply.github.com>
This commit is contained in:
Myriad-Dreamin 2024-10-19 18:32:37 +08:00 committed by GitHub
parent d9d10df7a4
commit 66fff06dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1943 additions and 1124 deletions

View file

@ -4,10 +4,11 @@ use typst::syntax::Side;
/// The `LinkedNodeExt` trait is designed for compatibility between new and old versions of `typst`.
pub trait LinkedNodeExt: Sized {
/// Get the leaf at the specified byte offset.
fn leaf_at_compat(&self, cursor: usize) -> Option<Self>;
}
impl LinkedNodeExt for LinkedNode {
impl<'a> LinkedNodeExt for LinkedNode<'a> {
fn leaf_at_compat(&self, cursor: usize) -> Option<Self> {
self.leaf_at(cursor, Side::Before)
}

View file

@ -1,2 +1,7 @@
//! Typst utils
pub use typst::utils::*;
/// Round a value to two decimal places.
pub fn round_2(value: f64) -> f64 {
round_with_precision(value, 2)
}