Incorrect comments for YAML multiline strings
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript, vscode, yaml
调研方向
Reproduce the issue in Positron using the supplied .qmd example, applying “Add line comment” to either LaTeX line inside the YAML multiline string. Compare the generated comment with the expected HTML-style comment and verify that rendering completes without the reported LaTeX error.
由索引模型根据 Issue 内容生成。
描述
Bug description
Hello, and apologies if this should be reported elsewhere.
When commenting out a .qmd line that's part of a YAML multiline string, I get # in Positron (which leads to an error when rendering). In RStudio, I get <!-- (which renders fine).
Many thanks in advance!
Steps to reproduce
Open the following .qmd in Positron, and then do "Add line comment" on either \setlength... or \usepackage....
---
title: "Hello"
format:
pdf:
include-in-header:
text: |
\setlength\parindent{.2in}
\usepackage{indentfirst}
---
## Hello
Hello
Hello
The line gets prefixed by #. Finally, render and get and error:
ERROR: compilation failed- error You can't use `macro parameter character #' in vertical mode.
Expected behavior
In RStudio, the lines get commented out in HTML style, e.g.: <!-- \usepackage{indentfirst} -->. This renders without errors.
Your environment
Positron Version: 2026.08.1 build 2
Code - OSS Version: 1.124.0
Commit: 48dc4cee686939f35fe4a714d34375f67fd62082
Date: 2026-08-09T13:35:16-06:00
Electron: 42.2.0
Chromium: 148.0.7778.97
Node.js: 24.15.0
V8: 14.8.178.14-electron.0
OS: Linux x64 7.1.8-200.fc44.x86_64
- 主要语言
- TypeScript
- 星标
- 665
- 派生
- 69
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 14
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quarto-dev/quarto 的其他 Issue
-
vscode
难度 2/5 1-3 小时 新手友好度 68/100
quarto-dev/quarto#1227 · 1 条评论 ·
维护者通常 1 天内回复
-
bug vscode
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/quarto#1211 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
quarto-dev/quarto#1139 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 90/100
quarto-dev/quarto#1138 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
quarto-dev/quarto#1137 ·
维护者通常 1 天内回复
查看 quarto-dev/quarto 的全部 Issue
相似的 Issue
-
api bug priority:low ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
wondermoney/wondermoney#862 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 84/100
rootsiemen/seo-agent-tools#70 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
elecnix/bellwether#467 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复