The HTML string to convert
The Markdown string
formatFromHtmlTurndown("<b>Bold</b>") // Returns "**Bold**"
export function formatFromHtmlTurndown(html: string): string {
const turndownService = new TurndownService();
return turndownService.turndown(html);
}
Converts HTML to Markdown using TurndownService.