How to use it
- Paste HTML or open an .html file.
- Choose Markdown tables, or HTML tables when cells are merged.
- Read the Markdown; the page lists what it left out.
- Copy it or download it as a .md file.
Rules and limits
How HTML becomes Markdown
- Your browser reads the HTML as data (scripts do not run); headings, paragraphs, bold, italic, strikethrough, code, links, pictures, lists, quotes, tables and line breaks become GitHub Flavored Markdown with the writer of the Word to Markdown converter, which is checked with GitHub’s cmark-gfm and pandoc.
- Text that would look like Markdown is escaped; formatting that Markdown cannot write is kept as small HTML tags; tables with merged cells become HTML tables.
- Not kept: scripts, styles, frames, forms and media (listed on the page), link and picture titles, the language of code blocks, list start numbers, spacing of loose lists, and empty elements. Line breaks inside a paragraph become spaces, as a browser shows them.
- Checked by the round trip Markdown → HTML → Markdown → HTML on 108 cases and 1,000 random documents: the same HTML apart from the points above.
Limits
- The time for long documents was not measured on the development laptop; the preview shows at most the first 200 KB of HTML.
- The page converts texts of up to 5 MB; that much was not tested.
Questions and answers
Why are some words written with backslashes?
Characters that Markdown would read as formatting, such as * or a number with a dot at the start of a line, are escaped so that your text stays text.
Why is some formatting written as HTML?
Markdown cannot express everything, such as bold text in the middle of a word next to punctuation. Such parts are written as small HTML tags, which GitHub and most viewers accept.
Does it run the scripts of the page I paste?
No. The browser reads the HTML as data without running anything, and scripts, styles and frames are left out of the Markdown.
Is the HTML sent anywhere?
No. It is converted in your browser, and the page cannot send it anywhere.