htmlToMarkdown

htmlToMarkdown() function

Converts HTML to a Markdown string.

Signature:

export function htmlToMarkdown(html: string | HTMLElement | Document | DocumentFragment): string;

Parameters

ParameterTypeDescription
htmlstring | HTMLElement | Document | DocumentFragment

Returns:

string