annotatedtext-rehype - v1.0.12
    Preparing search index...

    Function collecttextnodes

    • Function

      Collect text nodes from an AST.

      Parameters

      • ast: unknown

        The AST to collect text nodes from.

      • text: string

        The text that the AST was generated from.

      • Optionaloptions: IOptions

        The options to use.

      Returns IAnnotation[]

      The text nodes.

      This function was never meant to be used directly. It is in the underlying annotatedtext module and is used by the build function.

      collecttextnodes