Skip to main content

TextNode

ClassDataClassSource

TextNode(type: Literal["text"] = "text", text: str)

Node: Text

Provide the plain text.

Fields​

NameTypeRequired
Description
typeLiteral["text"]The type identifer of this document node.
textstrThe pure text in the node.

Properties​

pure_text​

pure_text: str = self.pure_text

The pure text of the current node.


size​

size: int = self.size

The estimated text length of the current node.