mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Fix hover tooltip in math
This commit is contained in:
parent
b6ee82c7e8
commit
70c8a08905
@ -38,7 +38,7 @@ fn expr_tooltip(world: &(dyn World + 'static), leaf: &LinkedNode) -> Option<Tool
|
||||
}
|
||||
|
||||
let expr = ancestor.cast::<ast::Expr>()?;
|
||||
if !expr.hashtag() {
|
||||
if !expr.hashtag() && !matches!(expr, ast::Expr::MathIdent(_)) {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user