read: a bold or italic span starting or ending with punctuation reads back as literal asterisks
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 4
- Fork
- 1
- Merge medio
- 2h 31m
- PR unite (30g)
- 49
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mozilla/markfluence
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
mozilla/markfluence#214 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
mozilla/markfluence#213 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
mozilla/markfluence#210 ·
I maintainer di solito rispondono entro 1 giorno
-
Move plans out of the repository so a stale plan cannot be mistaken for how markfluence worksApertadocumentation
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
mozilla/markfluence#209 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
mozilla/markfluence#205 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di mozilla/markfluence
Issue simili
-
duplication
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openvibely/openvibely#1443 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
keyxmakerx/Chronicle#1179 ·
I maintainer di solito rispondono entro 1 giorno
-
raised-by:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
medici-finance/assay#2486 ·
I maintainer di solito rispondono entro 1 giorno
-
area/testing kind/bug triage/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
cozystack/cozystack#4841 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openimsdk/openim-sdk-core#1127 ·