Converts HTML to Markdown, which is useful for moving content from a CMS, a web page or a rich text editor into a README, documentation site or static site generator. Headings, paragraphs, emphasis, links, images, lists, blockquotes, inline code and code blocks are converted using the Turndown library.

Options control the output style: # or underlined headings, the bullet character, and fenced or indented code blocks. With the GFM option on, tables, strikethrough and task list checkboxes are converted too. Tables need a header row to become Markdown tables; others are kept as HTML.

<script>, <style> and similar elements are removed. Conversion runs in your browser; the library loads on demand the first time you open the page.