• Compiles markdown to HTML.

    Parameters

    • src: string

      String of markdown source to be compiled

    • callback: ((error, parseResult) => void)

      Function called when the markdownString has been fully parsed when using async highlighting

        • (error, parseResult): void
        • Parameters

          • error: any
          • parseResult: string

          Returns void

    Returns string

    String of compiled HTML

  • Compiles markdown to HTML.

    Parameters

    • src: string

      String of markdown source to be compiled

    • Optional options: MarkedOptions

      Hash of options

    • Optional callback: ((error, parseResult) => void)

      Function called when the markdownString has been fully parsed when using async highlighting

        • (error, parseResult): void
        • Parameters

          • error: any
          • parseResult: string

          Returns void

    Returns string

    String of compiled HTML

Generated using TypeDoc