@asciidoctor/core
    Preparing search index...

    Function convertFile

    • Parse the contents of the AsciiDoc source file into a Document and convert it to the specified backend format.

      Parameters

      • filename: string

        the path to the AsciiDoc source file

      • Optionaloptions: object

        a plain Object of options (see convert)

      Returns Promise<string | Document>

      the Document if output was written to a file, otherwise the converted String