mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-11-25 09:22:39 +00:00
bb187d9260
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