mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 14:41:34 +00:00
* fix(outbound): preserve backticks on <code> tags with attributes The plain-text sanitizer only matched bare <code> openers, so attributed variants such as <code class="language-ts"> lost their backtick wrapping and were stripped to raw text before channel delivery. Allow optional attributes on the opening <code> tag, consistent with the existing handling for <h[1-6]> and <li> in the same function. Fixes #104117 * fix(outbound): preserve attributed inline formatting Co-authored-by: chengzhichao-xydt <chengzhichao-xydt@users.noreply.github.com> * test(outbound): compact attributed tag coverage * fix(outbound): normalize attributed formatting tags * docs(outbound): clarify attribute normalization invariant * fix(outbound): preserve native formatting semantics * docs(plugin-sdk): document sanitizer markup styles * docs(plugin-sdk): refresh docs map --------- Co-authored-by: moguangyu5-design <moguangyu5-design@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: chengzhichao-xydt <chengzhichao-xydt@users.noreply.github.com>