convert_markdown
Convert Markdown strings to formatted HTML, handling headings, bold, italic, code blocks, links, lists, and blockquotes. Get HTML output with original and converted lengths for further processing.
Instructions
Convert a Markdown string to HTML.
Handles headings (h1-h6), bold, italic, bold+italic, strikethrough, inline code, fenced code blocks with language class, links, images, blockquotes, unordered/ordered lists, and horizontal rules.
Args: markdown: Raw Markdown string
Returns: dict with keys: html, original_length, html_length, cost_usd
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": "convert_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes |