@asciidoctor/core - v4.0.6
    Preparing search index...

    Class Html5Converter

    Base class for all Asciidoctor converters.

    Subclass ConverterBase and implement convert_<nodeName> methods to handle specific node types. Register the subclass with the global registry via ConverterBase.registerFor.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _voidSlash: string
    _xmlMode: boolean
    backend: any

    Accessors

    • get logger(): LoggerLike

      The logger for this converter. The Logging mixin (logging.js) overrides this getter on the instance.

      Returns LoggerLike

    Methods

    • Convert using only content (no wrapping).

      Parameters

      • node: object

        the node whose content to return

      Returns Promise<string>

    • Convert a node by dispatching to a convert_<transform> method.

      Parameters

      • node: AbstractNode

        the AbstractNode to convert

      • Optionaltransform: string

        hint for which method to call (default: node.nodeName)

      • Optionalopts: object

        optional hints

      Returns unknown

      the result of the convert_<transform> handler; the actual type depends on the implementation

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<any>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any
      • Optionalopts: {}

      Returns Promise<string>

    • Parameters

      • _node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Parameters

      • node: any

      Returns Promise<string>

    • Alias for messageWithContext (used in extensions).

      Parameters

      • text: any
      • Optionalcontext: {}

      Returns {
          include_location?: any;
          source_location?: any;
          text: string;
          inspect(): string;
          toString(): string;
      }

    • Report whether this converter can handle the given transform.

      Parameters

      • transform: string

        the transform name

      Returns boolean

    • Build an auto-formatting log message that carries structured source_location (rather than baking it into the text), for use with this.logger.warn(...).

      Parameters

      • text: string
      • Optionalcontext: { include_location?: any; source_location?: any }

      Returns {
          include_location?: any;
          source_location?: any;
          text: string;
          inspect(): string;
          toString(): string;
      }

    • Parameters

      • node: any
      • target: any

      Returns Promise<any>

    • Register this converter class with the global registry.

      Parameters

      • ...backends: string[]

        backend names to register for

      Returns void