LaTeX syntax highlighting in Rmd
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- latex, markdown, vscode
调研方向
使用提供的 R Markdown 示例在 VSCode 中重现该问题,重点关注行内 $..$ 和块级 $$..$$ LaTeX 数学公式。找到 R Markdown 语法高亮的入口点,并验证在成对的数学分隔符内部会抑制 Markdown 样式,包括包含保留字符的行。
由索引模型根据 Issue 内容生成。
描述
- VSCode Version: 1.28.0
- VSCode-R Version: v0.6.2
- OS Version: x86_64-apple-darwin15.6.0 (64-bit)
Steps to Reproduce:
- Use two reserved markdown characters in LaTeX math blocks in the same line
- Syntax highlighting does not consider the LaTeX math notation and applies styling
Example of issue (with totally made up math)

Expected something more like this

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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
REditorSupport/vscode-R 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
REditorSupport/vscode-R#1687 · 3 条评论 · 3 个 reaction ·
-
bug
难度 1/5 1 小时以内 新手友好度 70/100
REditorSupport/vscode-R#1659 ·
-
难度 1/5 1 小时以内 新手友好度 72/100
REditorSupport/vscode-R#1641 ·
-
难度 5/5 一周以上 新手友好度 35/100
REditorSupport/vscode-R#1740 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
REditorSupport/vscode-R#1736 ·
查看 REditorSupport/vscode-R 的全部 Issue
相似的 Issue
-
comp/dashboard P3 type/bug
难度 2/5 1-3 小时 新手友好度 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
难度 2/5 1-3 小时 新手友好度 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 76/100
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·