mirror of https://github.com/stelzo/typst.git
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…
Reference in New Issue