read: a bold or italic span starting or ending with punctuation reads back as literal asterisks
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
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with the table property test mentioned in the issue and trace the read/write and publish conversion paths for marked spans. Reproduce the punctuation cases against the current goldmark-based behavior, then compare the relevant handling with CommonMark's flanking rules. Done means spans such as (b) next to letters no longer round-trip or publish with literal asterisks.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A bold, italic or strikethrough span whose text starts or ends with punctuation, with a letter or digit just outside it, reads back as literal asterisks. Reproduced on main:
| storage | read writes | publish sends |
|---|---|---|
<p>a<strong>(b)</strong>c</p> |
a**(b)**c |
<p>a**(b)**c</p> |
<p><strong>&copy;</strong>a</p> |
**\©**a (since #203) |
literal asterisks |
CommonMark's flanking rule has two halves. The whitespace half (a delimiter next to whitespace on the wrong side does not open or close) was fixed for marks in #204. The punctuation half remains: a closing ** preceded by punctuation closes only if it is followed by whitespace or punctuation, and an opening ** followed by punctuation opens only if it is preceded by whitespace or punctuation. So **(b)**c does not close, and the whole span publishes as text with its asterisks.
Escaping cannot fix it, since the punctuation is the span's own text. Possible fixes:
- Write such a span as inline HTML (
<strong>(b)</strong>), which goldmark passes through and the forward converter already accepts. - Use the
_delimiter where it helps. It has stricter intraword rules, so it is probably not a general answer.
Found while working on #203; the table property test's generator now keeps a mark's text from starting or ending with punctuation to avoid it.
- Ngôn ngữ chính
- Go
- Star
- 4
- Fork
- 1
- Merge trung bình
- 2 giờ 31 phút
- Pull request đã merge (30 ngày)
- 59
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 mozilla/markfluence
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
mozilla/markfluence#214 ·
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 68/100
mozilla/markfluence#213 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
mozilla/markfluence#210 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move plans out of the repository so a stale plan cannot be mistaken for how markfluence worksĐang mởdocumentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
mozilla/markfluence#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
mozilla/markfluence#205 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của mozilla/markfluence
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
status: ready for dev
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
hyperledger-labs/fabric-smart-client#2004 ·
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
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 84/100
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 78/100
apache/datasketches-go#189 ·
Maintainer thường phản hồi trong vòng 1 ngày