• Compiles markdown to HTML synchronously.

    Parameters

    • src: string

      String of markdown source to be compiled

    • Optional options: MarkedOptions

      Optional hash of options

    Returns string

    String of compiled HTML

  • Compiles markdown to HTML asynchronously.

    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 void

  • Compiles markdown to HTML asynchronously.

    Parameters

    • src: string

      String of markdown source to be compiled

    • options: MarkedOptions

      Hash of options

    • 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 void

Generated using TypeDoc