Bug reportSep 26, 2026· 0:32· 1 views
Milkdown playground: autolink backslash count doubles on every round-trip
0:32 total
Comments · 0
Be the first to comment.
Bug report— by SceneRecap AI
mediummarkdown serializer / parser
os: macOSbrowser: Chromium 151.0.7922.34viewport: 1280x720
Repro steps
- 1.Open Milkdown Playground.
- 2.Clear the Markdown source pane and input an autolink containing a backslash, such as `<https://example.com/page.\>`.
- 3.Click into the visual Crepe editor pane and press Enter to trigger serialization back to Markdown.
- 4.Observe the serialized Markdown source in the right pane.
Expected
The markdown serializer should preserve the single backslash in the autolink as `<https://example.com/page.\>`.
Actual
The markdown serializer escapes the backslash inside the autolink, converting `<https://example.com/page.\>` into `<https://example.com/page.\\>`.
Evidence
visualAt t=9.0s, the Markdown source pane displays `<https://example.com/page.\>` with a single backslash.
visualAt t=13.0s, after triggering synchronization from the visual editor, the Markdown source pane changes to `<https://example.com/page.\\>` with doubled backslashes.
Issue markdown (copy-paste ready)
### Summary When an autolink containing a backslash (e.g. `<https://example.com/page.\>`) is serialized round-trip between the Crepe visual editor and Markdown source, backslashes are repeatedly escaped and doubled (e.g. `\` becomes `\\`). ### Reproduction Steps 1. Open Milkdown Playground. 2. In the Markdown source pane, clear the default text and enter `<https://example.com/page.\>`. 3. Click into the Crepe editor (visual pane) and press `Enter` to trigger round-trip sync. 4. Observe the Markdown source pane. ### Expected Result The autolink is maintained as `<https://example.com/page.\>` without extraneous backslash escaping. ### Actual Result The autolink is rewritten to `<https://example.com/page.\\>`. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →