mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 08:52:21 +00:00
Plugin/soul READMEs that use raw HTML (e.g. centered logos via <h1 align="center">, <picture>, <br/>) were rendering as escaped text because @create-markdown/preview escapes all HTML. Swap the renderer for react-markdown + remark-gfm + rehype-raw + rehype-sanitize (GitHub's stack), with rehype-shiki-from-highlighter for fenced code block syntax highlighting. Sanitize runs before shiki so user HTML is scrubbed, and shiki's trusted styled output flows through untouched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>