Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

read: a trailing space inside bold, italic or strikethrough is dropped, joining words

Cerrado
#204 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go
Área
cli

Línea de trabajo

Start in storage_to_md.go, near renderInline and coalesceSplitMarks, and inspect the table property test referenced in #55. Reproduce the bold, italic, and strikethrough examples through read → publish. Done means trimmed edge spaces are emitted outside the Markdown delimiters so words remain separated, including leading spaces and non-table paragraphs.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Problem

read and export trim the whitespace at the edge of a marked span, and the space is not put back outside the marks, so the words either side of the span's end run together on the next publish. Found by the table property test in #55, on a real page.

Reproduced 2026-09-25 (read → publish):

storage read writes publish sends
<p><strong>bold </strong>next</p> **bold**next <p><strong>bold</strong>next</p>
<p><em>x </em>y</p> *x*y <p><em>x</em>y</p>
<p><del>lost for </del>13.5h</p> ~~lost for~~13.5h <p><del>lost for</del>13.5h</p>

The last row is from a real incident table in a personal space: the page shows "…features for13.5h" after a read → update cycle. The Markdown is a fixed point after the first cycle, so no round-trip test notices. It affects every paragraph, not only tables. The Confluence editor produces this shape readily, since a space typed at the end of a bold run stays inside the run.

Notes

  • Trimming is right, since CommonMark refuses **bold ** as emphasis (a closing delimiter preceded by whitespace does not close). The fix is to move the trimmed whitespace outside the delimiters: **bold** next. The same goes for a leading space: <strong> bold</strong> should become **bold**.
  • coalesceSplitMarks in storage_to_md.go handles a related editor shape (a mark split around a link); the fix probably belongs near where marks are rendered in renderInline.
Lenguaje dominante
Go
Estrellas
2
Forks
0
Merge medio
2 h 31 min
PR fusionados (30 d)
59

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mozilla/markfluence

Todos los issues de mozilla/markfluence

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.