<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`htmlToMarkdown`](htmlToMarkdown) ## htmlToMarkdown() function Converts HTML to a Markdown string. **Signature:** ```typescript export function htmlToMarkdown(html: string | HTMLElement | Document | DocumentFragment): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>html</code> | <code>string &#124; </code><code>HTMLElement</code><code> &#124; </code><code>Document</code><code> &#124; </code><code>DocumentFragment</code> | | **Returns:** `string`