From 86c175b6e6c556ed48eff8e6acfe056f10964a10 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 25 Aug 2024 15:13:41 +0800 Subject: [PATCH] fix: compile error --- Cargo.lock | 5 ++--- crates/reflexo-typst/src/exporter/text.rs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e18a5181..c6bdd7b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2959,7 +2959,6 @@ dependencies = [ "js-sys", "log", "reflexo", - "reflexo-typst", "reflexo-typst2vec", "reflexo-vec2bbox", "reflexo-vec2canvas", @@ -4338,8 +4337,8 @@ checksum = "2b3061f8d268e8eec7481c9ab24540455cb4912983c49aae38fa6e8bf8ef4d9c" [[package]] name = "typst-dev-assets" -version = "0.11.0" -source = "git+https://github.com/typst/typst-dev-assets?rev=e0ef7ad#e0ef7ad46f28a440c41bc8e78563ace86cc02678" +version = "0.11.1" +source = "git+https://github.com/typst/typst-dev-assets?tag=v0.11.1#35caed3a870d46e827cffaa9dc450e38bede2a37" [[package]] name = "typst-ide" diff --git a/crates/reflexo-typst/src/exporter/text.rs b/crates/reflexo-typst/src/exporter/text.rs index 2c5a2207..e5d1f216 100644 --- a/crates/reflexo-typst/src/exporter/text.rs +++ b/crates/reflexo-typst/src/exporter/text.rs @@ -44,6 +44,7 @@ impl FullTextDigest { match item { Group(g) => Self::export_frame(f, &g.frame), Text(t) => f.write_str(t.text.as_str()), + #[cfg(not(feature = "no-content-hint"))] Meta(ContentHint(c), _) => f.write_char(*c), Meta(Link(..) | Elem(..) | Hide, _) | Shape(..) | Image(..) => Ok(()), }