{"category":"documents","description":"Converts Markdown to HTML. Standard Markdown (CommonMark) with tables, ~~strikethrough~~, task lists and fenced code blocks.","endpoint":"https://setget.net/v1/tools/markdown-to-html","examples":[{"input":{"text":"# Hello\n\nThis is **bold** and this is a [link](https://example.com)."},"output":{"characters":106,"headings":1,"html":"<h1>Hello</h1>\n<p>This is <strong>bold</strong> and this is a <a href=\"https://example.com\">link</a>.</p>\n"},"title":"A heading and a paragraph"},{"input":{"heading_ids":true,"text":"## To do\n\n- [x] Write\n- [ ] Review\n\n| Item | Price |\n|------|------:|\n| Tea | 3.50 |"},"output":{"characters":351,"headings":1,"html":"<h2 id=\"to-do\">To do</h2>\n<ul>\n<li class=\"task\"><input type=\"checkbox\" disabled checked /> Write</li>\n<li class=\"task\"><input type=\"checkbox\" disabled /> Review</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Item</th>\n<th style=\"text-align:right\">Price</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Tea</td>\n<td style=\"text-align:right\">3.50</td>\n</tr>\n</tbody>\n</table>\n"},"title":"A task list, a table and heading ids"},{"input":{"text":"Hello <b>there</b> <script>alert(1)</script>"},"output":{"characters":76,"headings":0,"html":"<p>Hello &lt;b&gt;there&lt;/b&gt; &lt;script&gt;alert(1)&lt;/script&gt;</p>\n"},"title":"HTML in the text is shown, not run"}],"input_schema":{"additionalProperties":false,"properties":{"allow_html":{"default":false,"description":"Keep harmless HTML tags written in the Markdown, such as <sub>, <br> and <details>. Scripts, styles, frames and event handlers are always removed. When off, HTML is shown as text.","type":"boolean"},"document":{"default":false,"description":"Wrap the result in a complete web page with a small readable style sheet, ready to save as an .html file.","type":"boolean"},"heading_ids":{"default":false,"description":"Give every heading an id made from its text, so links such as #my-heading work.","type":"boolean"},"line_breaks":{"default":false,"description":"Turn every single line break into a visible line break, as chat apps do.","type":"boolean"},"text":{"description":"The Markdown to convert.","examples":["# Hello\n\nThis is **bold** and this is a [link](https://example.com)."],"maxLength":200000,"type":"string"},"title":{"default":"","description":"Title of the page when \"document\" is on. Defaults to the first heading.","maxLength":200,"type":"string"}},"required":["text"],"type":"object"},"keywords":["markdown to html","md to html","convert markdown","markdown converter","markdown renderer","render markdown","commonmark","github markdown","gfm","markdown preview","markdown html online"],"related":["markdown-to-pdf","markdown-to-docx","html-to-markdown","markdown-table-format","csv-to-markdown-table","html-format"],"slug":"markdown-to-html","summary":"Convert Markdown to clean HTML, with tables, task lists and code blocks, as a fragment or a full page.","tier":"inline","title":"Markdown to HTML","url":"https://setget.net/tools/markdown-to-html"}
