@radzor/markdown-render
Convert Markdown to sanitized HTML with syntax highlighting, GFM extensions (tables, strikethrough, task lists), and frontmatter extraction. Safe for user-generated content.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| sanitize | boolean | true | Strip unsafe HTML tags and attributes. Disable only for trusted content. |
| syntaxHighlight | boolean | true | Apply syntax highlighting to fenced code blocks. |
| breaks | boolean | false | Convert single newlines to <br> tags (GitHub-style). |
| linkify | boolean | true | Auto-link plain URLs in text. |
| allowedTags | string[] | — | Extra HTML tags to allow when sanitize is true. |
Strip unsafe HTML tags and attributes. Disable only for trusted content.
default: true