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

      Options to control how the text is parsed.

    Returns IAnnotation[]

    An array of annotations for text nodes.