pampa: plural possessive apostrophes (`Dogs' toys`) are reported as Q-2-10 and fail the render
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ó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Start with the inline quote parser and the Q-2-10 documentation at docs/errors/markdown/Q-2-10.qmd; compare how it handles a closing quote with an apostrophe after a word. Reproduce with the provided Dogs' toys and cats' toys. input and check single, plural, and contraction cases. Done means these apostrophes render without Q-2-10 while unmatched closing quotes still report the diagnostic.
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 larger report; see #939 for the full list of siblings.
Problem
A plural possessive (Dogs' toys) is an apostrophe followed by a space. The inline parser reads it as a closing single quote, finds no opener, and reports [Q-2-10] Closed Quote Without Matching Open Quote. The document then fails to render.
Pandoc renders the same input as <p>Dogs’ toys and cats’ toys.</p>.
The Connect docs hit this about 20 times, in ordinary prose such as "users' and groups' DNs". Escaping (groups\') or typing ’ works around it, but neither should be needed for standard English.
Repro
Dogs' toys and cats' toys.
$ q2 render a.qmd --to html
Error: [Q-2-10] Closed Quote Without Matching Open Quote
╭─[ a.qmd:1:6 ]
1 │ Dogs' toys and cats' toys.
│ ┬┬
│ ╰──── No opening quote was found before this mark. If you meant an apostrophe, escape it with a backslash.
│ │
│ ╰── A space is causing a quote mark to be interpreted as a quotation close.
...
2 errors
$ echo $?
1
My results on 0.36.0 differ slightly from the original report, which said a single possessive in a paragraph passes. Here every case fails, including the single one:
| Input | Result |
|---|---|
Cats' toys. |
Q-2-10 |
Dogs' toys and cats' toys. |
Q-2-10 ×2 |
| Two possessives across a soft line break | Q-2-10 ×2 |
| Two possessives in separate paragraphs | Q-2-10 ×2 |
- Dogs' toys. / - Cats' toys. as list items |
Q-2-10 ×1 (first item only) |
It's the cats' toys. |
Q-2-10 |
Cats' at end of block |
OK |
Dogs\' toys and cats\' toys. |
OK, renders Dogs’ toys and cats’ toys. |
The list-item case reporting only the first item suggests error recovery drops the second diagnostic rather than that the second item parses; see also #230 and #232.
Expected
An apostrophe directly after a word character and followed by whitespace or punctuation, with no open single quote pending in the block, should be read as an apostrophe (right single quotation mark), as pandoc does. The Q-2-10 doc page (docs/errors/markdown/Q-2-10.qmd) already describes contractions and possessives as the most common false positive, so this is a known sharp edge, but plural possessives are too common in prose to require escaping.
Related: #221 (apostrophe after a code span trips Q-2-7).
cc @atheriel
- Ngôn ngữ chính
- Rust
- Star
- 283
- Fork
- 20
- Merge trung bình
- 20 giờ 12 phút
- Pull request đã merge (30 ngày)
- 170
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ó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
quarto-dev/q2#953 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug error-messages
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
quarto-dev/q2#947 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug error-messages
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 63/100
quarto-dev/q2#946 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Split hub-client into componentsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
quarto-dev/q2#918 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
quarto-dev/q2#905 ·
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ự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swc-project/swc-next#1165 ·
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 73/100
Alive24/shea-symphony#574 ·
-
[ko] Translate /team into KoreanĐang mởdocumentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
dev-five-git/devup-ui#879 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
farion1231/cc-switch#9038 · 1 bình luận ·
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 85/100
FalkorDB/FalkorDB#3597 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày