markdown-sanitization-chain
CommunityEnsure safe rendering of user markdown content to prevent XSS.
Authorfabioc-aloha
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents cross-site scripting (XSS) vulnerabilities when rendering user-supplied markdown by enforcing a strict render chain.
Core Features & Use Cases
- Security: Sanitizes HTML generated from markdown to prevent malicious scripts from executing.
- Compatibility: Supports rendering diagrams like Mermaid within sanitized content.
- Use Case: When displaying user comments or embedded documentation that includes markdown and diagrams, this chain ensures safety and correctness.
Quick Start
Integrate the renderMarkdown function to parse, sanitize, and render markdown content safely in your web app.
Dependency Matrix
Required Modules
markeddompurifymermaid
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: markdown-sanitization-chain Download link: https://github.com/fabioc-aloha/Alex_ACT_Extension/archive/main.zip#markdown-sanitization-chain Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.