read: two hard breaks in a row become a paragraph break
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Start with the named renderInlineRun, renderMark, renderCellLines, and heading substitutions, then reproduce the two-consecutive-break examples on main. Ensure later breaks in a run use the backslash-plus-newline spelling consistently, including marked, cell, and heading cases, so publishing keeps one paragraph and preserves both breaks.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Two hard breaks in a row read back as a paragraph break. Found while working on #204; reproduced on main:
| storage | read writes | publish sends |
|---|---|---|
<p>a<br /><br />b</p> |
a␣␣\n␣␣\nb |
<p>a</p><p>b</p> |
The second break's own two spaces make a line that holds nothing but whitespace, and Markdown reads that as a blank line, so one paragraph comes back as two. The editor writes this shape for Shift+Enter pressed twice.
Since #204 the same happens when a <br /> at the end of a bold run is followed by a <br /> (<p><strong>a<br /></strong><br />b</p>), because the edge break now moves out of the mark instead of being dropped.
Notes
- A backslash hard break survives on a line of its own:
a␣␣\n\\\nbpublishes as<p>a<br />\n<br />\nb</p>. So the fix is probably to write every break after the first in a run as\+ newline. - Breaks are compared and trimmed as the literal
" \n"in several places (renderInlineRun,renderMark's edge trim,renderCellLines'<br>substitution, the heading's<br />substitution), so each place needs to recognise the second spelling too. Otherwise a mark's edge trim stops at the backslash.
- Lingua principale
- Go
- Stelle
- 2
- Fork
- 0
- Merge medio
- 2h 31m
- PR unite (30g)
- 59
Preparare l'ambiente
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
-
read: a bold or italic span starting or ending with punctuation reads back as literal asterisksAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
mozilla/markfluence#216 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
mozilla/markfluence#214 ·
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
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1417 ·
I maintainer di solito rispondono entro 2 giorni
-
agent-research-finding agent-research-recommend chore ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jordansmall/spindrift#4068 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Type/Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
OpenNSW/nsw-srilanka#537 ·
I maintainer di solito rispondono entro 1 giorno
-
security
Difficoltà 2/5 1-2 giorni Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno