{"category":"documents","description":"Reads the HTML as text and writes its content as Markdown: headings, paragraphs, lists, tables, code blocks with their language, quotes, links and pictures. Nothing in the page is run or loaded.","endpoint":"https://setget.net/v1/tools/html-to-markdown","examples":[{"input":{"file":"sample.html"},"title":"A saved page as Markdown"},{"input":{"base_url":"https://example.com/docs/","file":"sample.html","images":"drop"},"title":"Links written in full, pictures left out"}],"input_schema":{"additionalProperties":false,"properties":{"base_url":{"description":"Address of the page, used only to write relative links in full. Nothing is fetched. Leave empty to keep links as they are.","examples":["https://example.com/docs/"],"maxLength":2000,"type":"string"},"file":{"description":"The HTML file to convert.","format":"setget-file","type":"string","x-accept":["text","binary"]},"images":{"default":"keep","description":"What to do with pictures: keep writes ![description](address), alt keeps only the description, drop leaves them out.","enum":["keep","alt","drop"],"type":"string"},"main_only":{"default":true,"description":"Take only the main content of the page when it is marked, and leave out menus, sidebars and footers. Set to false to convert the whole page.","type":"boolean"}},"required":["file"],"type":"object"},"keywords":["html to markdown","html to md","web page to markdown","convert html to markdown","webpage to text","html for llm","turndown","html2text","markdown from html","clean html","article to markdown"],"related":["any-to-markdown","html-to-text","markdown-to-html","html-extract-links","epub-to-markdown"],"slug":"html-to-markdown","summary":"Turn a saved web page into Markdown: the main content, without menus, scripts and styling.","tier":"job","timeout_seconds":60,"title":"HTML to Markdown","url":"https://setget.net/tools/html-to-markdown"}
