From 97bb0fbce3b21dcac4334b9d01d27cd83498e460 Mon Sep 17 00:00:00 2001 From: frozolotl <44589151+frozolotl@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:04:34 +0100 Subject: Fix bug where inline equations were displayed in the outline (#2662) --- crates/typst-library/src/math/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/typst-library/src/math/mod.rs') diff --git a/crates/typst-library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs index a4d44d00..976354e9 100644 --- a/crates/typst-library/src/math/mod.rs +++ b/crates/typst-library/src/math/mod.rs @@ -367,6 +367,9 @@ impl Refable for EquationElem { impl Outlinable for EquationElem { fn outline(&self, vt: &mut Vt) -> SourceResult> { + if !self.block(StyleChain::default()) { + return Ok(None); + } let Some(numbering) = self.numbering(StyleChain::default()) else { return Ok(None); }; -- cgit v1.2.3