ListNode
ClassDataClassSource
ListNode(type: Literal["list"] = "list", ordered: bool, items: list[ListItemNode])
Node: List
Provide the ordered or unordered lists.
ordered = True for <ol>, False for <ul>.
Fields
| Name | Type | Required | |
|---|---|---|---|
type | Literal["list"] | The type identifer of this document node. | |
ordered | bool | A flag. If specified, the list will be recognized as an ordered list. | |
items | list[ListItemNode] | The list items in this list. |
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.