LaTeX syntax highlighting in Rmd

未关闭
#93 38 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
latex, markdown, vscode

调研方向

使用提供的 R Markdown 示例在 VSCode 中重现该问题,重点关注行内 $..$ 和块级 $$..$$ LaTeX 数学公式。找到 R Markdown 语法高亮的入口点,并验证在成对的数学分隔符内部会抑制 Markdown 样式,包括包含保留字符的行。

由索引模型根据 Issue 内容生成。

描述

help wanted highlighting
  • VSCode Version: 1.28.0
  • VSCode-R Version: v0.6.2
  • OS Version: x86_64-apple-darwin15.6.0 (64-bit)

Steps to Reproduce:

  1. Use two reserved markdown characters in LaTeX math blocks in the same line
  2. Syntax highlighting does not consider the LaTeX math notation and applies styling

Example of issue (with totally made up math)

image

Expected something more like this

image

TBH, simply catching the use of LaTeX and removing the syntax highlighting between paired $..$ or $$..$$ would be a great improvement.

Example text
For each $x_i$, consider all $x_i < k$.
Is $x*2$ greater than $y*2$?

$$
y_i = m * x_i + b
$$
主要语言
TypeScript
星标
1.2k
派生
139
平均合并
3 小时 33 分钟
30 天内合并 PR
6

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

REditorSupport/vscode-R 的其他 Issue

查看 REditorSupport/vscode-R 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。