Files
pad/internal/materialize
xarmian bb187d9260 fix(web): a stray [ no longer becomes a later link's label (BUG-4449)
The save path converts markdown links to wiki links with a regex whose
label accepted an unescaped `[` and opened at an escaped one. A literal
bracket anywhere earlier in a body therefore matched through to the next
internal link, across lines and paragraphs. Everything between them
became the label, and table pipes inside it were rewritten.

The label now stops at an unescaped `[` and at a blank line, and cannot
open at an escaped bracket. Same-workspace, cross-workspace and broken
placeholder links share this grammar. A link directly after a literal
`[` stays a markdown link, because `[[[REF]]` would read as a wiki link
whose body starts with `[`.

Regenerates the materializer corpus: 7 of 50 cases change, each one a
label shrinking back to the link's own text.

Claude-Session: https://claude.ai/code/session_01Pa22hLdsEm6NYjkGmLiQWc
2026-11-10 07:18:50 +00:00
..