Parses input into a TextNode AST, or returns null if empty/malformed. Respects input-length, token-count, and nesting-depth safety limits.
null