Fix hiding of math (#587)

This commit is contained in:
Daniel Csillag 2023-04-05 07:04:11 -03:00 committed by GitHub
parent b3faef4b80
commit f548223663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -256,6 +256,9 @@ impl Layout for EquationElem {
frame.size_mut().y = ascent + descent;
}
// Apply metadata.
frame.meta(styles, false);
Ok(Fragment::frame(frame))
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,16 @@
// Ensure that the math is properly hidden.
---
#set page(height: 70pt)
Testing $delta$
$ a^2 + b^2 = c^2 $
#hide[
Hello
$ f(x) := x^2 $
World $f(x)$
]