Inside of multiline math expressions in markdown files is not recognized as math/latex context.
#202,450 创建于 2024年1月14日
仓库指标
- Star
- (74,848 star)
- PR 合并指标
- (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)
描述
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.