Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#204 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
2
Fork
0
Merge medio
2h 29m
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mozilla/markfluence

Tutte le issue di mozilla/markfluence

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.