Function collecttextnodes

  • 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 annotatedtext.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