Inside of multiline math expressions in markdown files is not recognized as math/latex context.
#202 450 ouverte le 14 janv. 2024
Métriques du dépôt
- Stars
- (74 848 stars)
- Métriques de merge PR
- (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.1
- OS Version: Windows 11
In markdown file, multiline math expressions like the following are valid and supported by the official markdown preview feature. But the inside of the dollar signs is not recognized as math/latex context unless the beginning dollar sign is at the start of the line. I checked the context by "Inspect Editor Tokens and Scopes".
aaa $\begin{pmatrix}
1 & 2 \\
3 & 4 \\
\end{pmatrix}$ bbb
I have a lot of latex snippets for writing math expressions in markdown, but they are not suggested in such expressions for this issue.
btw, I have a setting "markdown.preview.breaks": true. When this is true, I think the only way to write an inline multiline math expression is like this.