@mathjax/src
    Preparing search index...

    Interface Handler<N, T, D>

    The Handler interface

    interface Handler<N, T, D> {
        adaptor: DOMAdaptor<N, T, D>;
        documentClass: MathDocumentConstructor<AbstractMathDocument<N, T, D>>;
        name: string;
        priority: number;
        create(document: any, options: OptionList): MathDocument<N, T, D>;
        handlesDocument(document: any): boolean;
    }

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Implemented by

    Index

    Properties

    adaptor: DOMAdaptor<N, T, D>

    The DOM Adaptor to use for managing HTML elements

    The class implementing the MathDocument for this handler (so it can be subclassed by extensions as needed)

    name: string

    The name of the handler class

    priority: number

    The priority for the handler when handlers are polled to see which one can process a given document.

    Methods

    • Checks to see if the handler can process a given document

      Parameters

      • document: any

        The document to be processed (string, window, etc.)

      Returns boolean

      True if this handler can process the given document