Skip to main content

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​

NameTypeRequired
Description
typeLiteral["list"]The type identifer of this document node.
orderedboolA flag. If specified, the list will be recognized as an ordered list.
itemslist[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.