mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 15:17:59 +03:00
fix slicing math modes
This commit is contained in:
parent
528a2f5d79
commit
324a385245
@ -115,6 +115,9 @@ export class HoverProvider implements vscode.HoverProvider {
|
||||
if (tex.startsWith('\\(') && tex.endsWith('\\)')) {
|
||||
tex = tex.slice(2, tex.length - 2)
|
||||
}
|
||||
if (tex.startsWith('\\[') && tex.endsWith('\\]')) {
|
||||
tex = tex.slice(2, tex.length - 2)
|
||||
}
|
||||
return tex
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user