x402
Markdown to HTML (x402)
Convert markdown to styled HTML with inline CSS. Supports light, dark, and plain themes. Algorithmic — instant.
get/x402/v2/markdown-to-html
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/markdown-to-html
- Auth: none required
Query parameters
themestring
light, dark, or plain
markdownstring required
Markdown text to convert
Response
Success
Example response
{
"html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style>body{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif;line-height:1.6;max-width:800px;margin:0 auto;padding:2rem}\ncode{font-family:\"SF Mono\",Monaco,Consolas,monospace;font-size:0.9em;padding:0.2em 0.4em;border-radius:3px}\npre{padding:1rem;border-radius:6px;overflow-x:auto}pre code{padding:0}\nblockquote{border-left:4px solid;padding-left:1rem;margin-left:0}\nimg{max-width:100%;height:auto}\ntable{border-collapse:collapse;width:100%}th,td{border:1px solid;padding:0.5rem;text-align:left}\nhr{border:none;border-top:1px solid}\nbody{background:#fff;color:#333}a{color:#0366d6}code{background:#f6f8fa}pre{background:#f6f8fa}blockquote{border-color:#dfe2e5;color:#6a737d}th,td{border-color:#ddd}hr{border-color:#eee}</style></head>\n<body><h1>Hello World</h1>\n\n<p>This is a <strong>test</strong> document.</p></body>\n</html>",
"theme": "light",
"body_html": "<h1>Hello World</h1>\n\n<p>This is a <strong>test</strong> document.</p>"
}Changes
No recorded changes to this operation across all 1 revision of this API.