read: two hard breaks in a row become a paragraph break
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 2 h 31 min
- PR fusionados (30 d)
- 59
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mozilla/markfluence
-
read: a bold or italic span starting or ending with punctuation reads back as literal asterisksAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/markfluence#216 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
mozilla/markfluence#214 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/markfluence#210 ·
Los mantenedores suelen responder en 1 día
-
Move plans out of the repository so a stale plan cannot be mistaken for how markfluence worksAbiertodocumentation
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
mozilla/markfluence#209 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
mozilla/markfluence#205 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de mozilla/markfluence
Issues similares
-
[Docs] - Document minimum Terraform/OpenTofu version (>= 1.11) required by write-only argumentsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
MagaluCloud/terraform-provider-mgc#323 ·
Los mantenedores suelen responder en 11 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
rossoctl/context-guru#366 ·
Los mantenedores suelen responder en 1 día
-
stage-fail
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
siyuan-note/bazaar#2293 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
piraeusdatastore/piraeus-operator#1070 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día