mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix math hiding once more
This commit is contained in:
parent
981c578ff9
commit
5a6330dbfc
@ -233,9 +233,9 @@ impl GlyphFragment {
|
|||||||
};
|
};
|
||||||
let size = Size::new(self.width, self.ascent + self.descent);
|
let size = Size::new(self.width, self.ascent + self.descent);
|
||||||
let mut frame = Frame::new(size);
|
let mut frame = Frame::new(size);
|
||||||
frame.meta_iter(self.meta);
|
|
||||||
frame.set_baseline(self.ascent);
|
frame.set_baseline(self.ascent);
|
||||||
frame.push(Point::with_y(self.ascent), FrameItem::Text(item));
|
frame.push(Point::with_y(self.ascent), FrameItem::Text(item));
|
||||||
|
frame.meta_iter(self.meta);
|
||||||
frame
|
frame
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 8.7 KiB |
@ -1,16 +0,0 @@
|
|||||||
// 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)$
|
|
||||||
]
|
|
@ -13,3 +13,8 @@ $ 1 + sqrt(x/2) + sqrt(#hide($x/2$)) $
|
|||||||
$ a x #link("url", $+ b$) $
|
$ a x #link("url", $+ b$) $
|
||||||
$ f f1 f2 $
|
$ f f1 f2 $
|
||||||
$ vec(1,2) * 2 $
|
$ vec(1,2) * 2 $
|
||||||
|
|
||||||
|
---
|
||||||
|
$ x^2 #hide[$(>= phi.alt) union y^2 0$] z^2 $
|
||||||
|
Hello #hide[there $x$]
|
||||||
|
and #hide[$ f(x) := x^2 $]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user