mirror of https://github.com/stelzo/typst.git
Fix hiding of math (#587)
This commit is contained in:
parent
b3faef4b80
commit
f548223663
|
|
@ -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 |
|
|
@ -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)$
|
||||
]
|
||||
Loading…
Reference in New Issue