diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2023-11-13 12:04:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 12:04:34 +0100 |
| commit | 97bb0fbce3b21dcac4334b9d01d27cd83498e460 (patch) | |
| tree | 37efeb028e1150bf7ca36f9111b059eb2f3e2673 /crates/typst-library/src/math/mod.rs | |
| parent | d25e6726e29b65f14ae14cff8518807c2067e690 (diff) | |
Fix bug where inline equations were displayed in the outline (#2662)
Diffstat (limited to 'crates/typst-library/src/math/mod.rs')
| -rw-r--r-- | crates/typst-library/src/math/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<Option<Content>> { + if !self.block(StyleChain::default()) { + return Ok(None); + } let Some(numbering) = self.numbering(StyleChain::default()) else { return Ok(None); }; |
