Math preview in Positron breaks when display math contains inline code (`{r} expr`), though the document renders correctly
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 57/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- devtools
Hướng nghiên cứu
Start by locating the VS Code or Positron display-math preview code that receives Quarto inline executable code; the issue does not name a file or test. Reproduce with the provided repro.qmd example, then inspect the preview path and its tests. Done when the preview handles the inline {r} expressions gracefully while the document continues to render correctly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug description
When a display math block ($$ ... $$) contains inline executable code using the {r} expr syntax, the equation preview in VS Code fails to render. The document itself is valid: quarto render runs the inline code and produces correct output (the math shows the computed value). Only the preview is broken.
Steps to reproduce
obs_slope_x1 <- 2.31
$$
P \big( b_1 \leq -`{r} obs_slope_x1`~or~ b_1 \geq `{r} obs_slope_x1` ~|~ \beta_1 = 0 \big)
$$
- Save the above as
repro.qmdand open it in Positron. - Hover over, or otherwise trigger the preview of, the display math block.
- The preview fails or shows broken output.
- Preview the document. It succeeds.
Actual behavior
The preview passes the raw backtick and {r} syntax to the math renderer, so the preview breaks, even though the syntax is valid Quarto and renders correctly.
Expected behavior
The preview should either:
- render the math with the inline code shown as a placeholder (for example, replace
{r} obs_slope_x1with \text{obs_slope_x1} or a similar marker), or - degrade gracefully (for example, a note that the equation contains inline code), instead of a broken preview.
Your environment
- Quarto CLI: 1.11.9
- Positron Version: 2026.11.1 build 4
- R: 4.6.2
- OS: macOS (Darwin 27.2.0)
- Ngôn ngữ chính
- TypeScript
- Star
- 665
- Fork
- 69
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quarto-dev/quarto
-
vscode
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
quarto-dev/quarto#1227 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug vscode
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/quarto#1211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
quarto-dev/quarto#1139 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
quarto-dev/quarto#1138 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
quarto-dev/quarto#1137 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/quarto
Issue tương tự
-
api bug priority:low ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wondermoney/wondermoney#862 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
rootsiemen/seo-agent-tools#70 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alvinunreal/oh-my-opencode-slim#1971 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
elecnix/bellwether#467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày