mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Addresses Greptile's review of #4705. The rewrite matched a reference anywhere but right after a link's bracket, so one written inside code was turned into markdown the preview then printed verbatim, and one inside a longer link label nested a link in a link. Code spans, fenced blocks and whole existing links are now matched first and handed back untouched. A trailing query no longer splits a reference either: `?` joins the guard that already kept `/files` and `#issuecomment-1` whole. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK