mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-08 01:16:45 +08:00
* test(util): mentions inside markdown code should not trigger agent runs Failing tests for upstream #7237 suggestion 4: fenced code blocks, inline code spans, and unterminated fences must suppress mention parsing; blockquote mentions deliberately stay active. Signed-off-by: Sanjay <[email protected]> Signed-off-by: Sanjay Ramadugu <[email protected]> * fix(util): ignore mentions inside markdown code ParseMentions now suppresses mentions inside fenced code blocks (backtick and tilde fences, info strings, fences longer than three characters) and inline code spans, including multi-backtick spans. An unterminated fence suppresses everything after it. Blockquote mentions are deliberately still returned: quoting a mention in a reply is a real notification, not documentation of the syntax. Upstream #7237, suggestion 4. Signed-off-by: Sanjay Ramadugu <[email protected]> * fix(util): parse mentions from goldmark link nodes Drop the hand-rolled fence scanner. Walk CommonMark Link nodes so code spans, nested fences, and longer closers stay inert, and update the squad briefing contract to prove pasted roster syntax still triggers. * fix(util): require canonical visible mention links * fix(util): ignore sanitized HTML in mention labels Co-authored-by: multica-agent <[email protected]> * fix(util): exclude inert template mention labels Co-authored-by: multica-agent <[email protected]> --------- Signed-off-by: Sanjay <[email protected]> Signed-off-by: Sanjay Ramadugu <[email protected]> Co-authored-by: Sol-Boy <[email protected]> Co-authored-by: multica-agent <[email protected]>