pampa: footnote text on the line after `[^1]:` reports Q-2-29 "Indented Footnote Content" although nothing is indented
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
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- documentation
Hướng nghiên cứu
Start with crates/pampa/resources/error-corpus/Q-2-29.json and trace how its guard is evaluated in crates/quarto-parse-errors/src/error_generation.rs; compare the indented and non-indented reproductions in the issue. Check docs/errors/markdown/Q-2-29.qmd for the current wording. Done when non-indented or missing text gets an accurate diagnostic, while genuinely indented content still gets the intended message.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Reported by @atheriel while porting the Posit Connect documentation from Quarto 1.9.32 to q2 0.36.0. Reproduced on main at 3f7d4b0e8 (q2 0.36.0, macOS). Split out of a second batch of parsing reports; sibling: #946 ($ in prose).
Problem
A footnote label with its text on the following line reports [Q-2-29] Indented Footnote Content Not Supported, but nothing is indented:
[^1]
[^1]:
Text.
Error: [Q-2-29] Indented Footnote Content Not Supported
╭─[ f1.qmd:3:6 ]
3 │ [^1]:
│ ──┬──┬
│ ╰───── This footnote definition has indented content, which is not supported in quarto markdown.
│ │
│ ╰── Quarto markdown does not support indented footnote content. Use the div syntax instead: `::: ^ref ... :::`.
───╯
Pandoc reads Text. as a lazy continuation and makes it the footnote body. #202 established that q2 will not support Pandoc-style footnote continuations, so rejecting this input is expected. The problem is the message: it describes a different mistake. A reader who checks their file for indentation finds none and is stuck.
The same message also appears for a label with nothing after it at all:
[^1]
[^1]:
So the diagnostic is really "footnote definition has no text on its line", and the indented case is one of three inputs that reach it.
Repro
Input (after [^1] + blank line) |
Result |
|---|---|
[^1]: newline Text. |
Q-2-29, "indented content" |
[^1]: newline Text. |
Q-2-29 (the case the message was written for) |
[^1]: alone |
Q-2-29, "indented content" |
[^1]: Text. |
OK |
Expected
When the line after the label is not indented (or there is no following line), the message should say that the definition has no text on its line, and suggest:
[^1]: Text.for a single-paragraph note, or- the
::: ^1block form for multi-paragraph notes.
The existing indented-content wording can stay for the indented case, or the two can share a neutral title like "Footnote definition has no content on its line" with the div-syntax hint. Either way, "indented" should only appear when the next line is actually indented.
Pointers
- Diagnostics are table-driven from
crates/pampa/resources/error-corpus/(Q-2-29.json) viacrates/quarto-parse-errors/src/error_generation.rs; the corpus guard for Q-2-29 presumably matches on the[^1]:parser state regardless of what follows. A guard on the next line's leading whitespace, or a second corpus entry, would split the cases. - Docs:
docs/errors/markdown/Q-2-29.qmd.
cc @atheriel
- Ngôn ngữ chính
- Rust
- Star
- 283
- Fork
- 20
- Merge trung bình
- 19 giờ 28 phút
- Pull request đã merge (30 ngày)
- 174
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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/q2
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
quarto-dev/q2#957 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
quarto-dev/q2#988 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
q2 mcp: can't upload a full-size screenshot because images go through the conversation as base64Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
quarto-dev/q2#987 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
quarto-dev/q2#986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
quarto-dev/q2#985 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quarto-dev/q2
Issue tương tự
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
servo/rust-smallvec#827 ·
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 72/100
nowledge-co/hawdb#1400 ·
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 62/100
calcit-lang/caps#16 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
penso/herdr-gpui#934 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎉 Add BossanovaĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
jaywcjlove/awesome-mac#4096 ·
Maintainer thường phản hồi trong vòng 1 ngày