What gets converted
The converter cleans the HTML with DOMPurify, then turns it into Markdown with the Turndown library and its GitHub-flavored table plugin. This is what happens to each part of a page, checked against the converter itself.
| HTML | Converted? | Markdown you get |
|---|---|---|
<h1> to <h6> |
Yes | # to ###### headings |
<p> and <br> |
Yes | Paragraphs; a <br> becomes a line break |
<strong>, <b>, <em>, <i> |
Yes | **bold** and *italic* |
<del>, <s>, <strike> |
Yes | ~~strikethrough~~ |
| Bold or italic set with inline CSS | Yes | Bold and italic, the way Google Docs pastes them |
<a href> |
Yes | [text](url), with the URL kept exactly as written |
<img> |
Yes | . Images are not downloaded, only referenced. |
<ul>, <ol>, nested lists |
Yes | - and 1. lists, nested two spaces; a list's start number is kept |
<blockquote> |
Yes | > quotes |
<pre><code class="language-js"> |
Yes | A fenced code block tagged js |
<code> |
Yes | Inline code |
<hr> |
Yes | A * * * rule |
<table> |
Partial | A pipe table; the first row becomes the header. Merged cells (colspan, rowspan) are not expanded. |
<pre> without <code> |
Partial | The text and its line breaks are kept, but not inside a code fence |
<u>, <mark>, <sub>, <sup> |
Partial | The text is kept, the formatting is not (Markdown has no syntax for it) |
| Navigation, sidebars, footers | Partial | Kept as ordinary text and links, because the converter cannot tell them from the article |
<script>, <style>, <iframe>, comments |
No | Removed |
| Classes, IDs, inline styles | No | Removed |