Renders a markdown or HTML string safely using react-markdown.
Supports GitHub Flavored Markdown (tables, strikethrough, task lists) and
raw HTML via rehype-raw. All output is sanitized with rehype-sanitize
to prevent XSS — script tags, event handlers, etc. are always stripped.
Renders a markdown or HTML string safely using
react-markdown.Supports GitHub Flavored Markdown (tables, strikethrough, task lists) and raw HTML via
rehype-raw. All output is sanitized withrehype-sanitizeto prevent XSS — script tags, event handlers, etc. are always stripped.