@mathjax/src
    Preparing search index...

    Implements a lightweight DOMParser replacement (Not perfect, but handles most well-formed HTML)

    Implements

    Index

    Properties

    PCDATA: { [name: string]: boolean } = ...

    The list of tags chose content is not parsed (PCDATA)

    SELF_CLOSING: { [name: string]: boolean } = ...

    The list of self-closing tags

    Methods

    • Check the contents of the parsed document and move html, head, and body tags into the document structure. That way, you can parse fragments or full documents and still get a valid document.

      Parameters

      Returns void

    • Parameters

      • adaptor: LiteAdaptor

        The adaptor for managing nodes

      • node: LiteElement

        The node whose PCDATA content is being collected

      • kind: string

        The tag name being handled

      • parts: string[]

        The array of text/tag data for the document

      Returns void

    • Parameters

      • text: string

        The attribute value to be HTML escaped

      • xml: boolean

        True if XML rules are to be used

      Returns string

      The string with " replaced by entities

    • Parameters

      • text: string

        The text to be HTML escaped

      Returns string

      The string with &, <, and > replaced by entities