ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Function formatFromHtmlTurndown

    • Converts HTML to Markdown using TurndownService.

      Parameters

      • html: string

        The HTML string to convert

      Returns string

      The Markdown string

      formatFromHtmlTurndown("<b>Bold</b>") // Returns "**Bold**"
      
      export function formatFromHtmlTurndown(html: string): string {
      const turndownService = new TurndownService();
      return turndownService.turndown(html);
      }