fix slicing math modes

This commit is contained in:
Takashi Tamura 2018-10-18 09:10:43 +09:00
parent 528a2f5d79
commit 324a385245

View File

@ -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
}