Skip to content

TurndownService.turndown method

TurndownService › turndown

Unofficial

Convert HTML to Markdown.

Signature:

turndown(html: string | TurndownServiceNode): string

Parameters:

Parameter Type Description
html string | TurndownServiceNode HTML string or DOM node to convert.

Returns: stringThe Markdown string.