Markdown To Html
markdown_to_htmlRender Markdown to safe HTML: CommonMark-style blocks (ATX / setext headings, paragraphs, block quotes, nested ordered / bullet lists, fenced and indented code with language classes, thematic breaks) and inlines (emphasis, strong, code spans, links, images, reference links, autolinks, hard breaks, escapes, entities) plus GitHub extensions (tables with alignment, task lists, strikethrough, bare URL autolinks). Raw HTML is escaped by default or allowlist-sanitized; javascript: and other unsafe URLs are dropped. Returns HTML, heading ids and a table of contents. Offline, deterministic. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/markdown-to-html
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"markdown": "<markdown>"
},
"name": "markdown_to_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breaks | No | Treat single newlines as <br> | |
| markdown | Yes | Markdown source | |
| allowHtml | No | Keep raw HTML (sanitised with an allowlist) instead of escaping it | |
| headingIds | No | Add GitHub-style id slugs to headings | |
| linkTarget | No | Open links in a new tab (adds rel=noopener noreferrer) | none |