<!-- 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 | </code><code>HTMLElement</code><code> | </code><code>Document</code><code> | </code><code>DocumentFragment</code> | |
**Returns:**
`string`