HTML to Markdown
HTML to Markdown conversion
Semantic HTML maps to readable Markdown: h1 through h6 become headings, strong and em become emphasis, and anchors retain their destinations. Lists, fenced code blocks, blockquotes and simple tables keep their structure. Scripts, embedded frames, forms and unsafe URL schemes are removed before conversion.
Tables and relative links
Simple HTML tables become GitHub Flavored Markdown tables. Tables with merged cells remain sanitized HTML to preserve their structure. A base URL resolves relative links and images when converting a fragment from a website. Without a base URL, relative paths remain relative to the destination document.
HTML that Markdown cannot represent
CSS layout, interactive widgets and custom fonts do not have Markdown equivalents. An imported HTML file contains source markup; content that a website builds with JavaScript may be absent. HTML conversion happens locally, but linked images can contact their original hosts when the Markdown preview is opened.