node_bullet_list¶
- class atlas_doc_parser.nodes.node_bullet_list.NodeBulletList(type: str = 'bulletList', content: list[NodeListItem] = REQ)[source]¶
A container for an unordered (bulleted) list.
The bulletList node is a top-level block node that groups multiple listItem nodes together for rendering as a bulleted list.
- to_markdown(level: int = 0, ignore_error: bool = False) str[source]¶
Convert the bullet list to Markdown format.
ADF Structure (nested list is a child of listItem):
bulletList ├── listItem (item 1) │ ├── paragraph → text nodes ← text wrapped in paragraph │ └── bulletList (nested) ← nested list is CHILD of listItem │ └── listItem (item 1.1) │ ├── paragraph │ └── bulletList (nested) ├── listItem (item 2) │ ├── paragraph │ └── bulletList (nested) ...
Implementation: Uses two nested loops because:
Outer loop: iterates over
listItemnodes inbulletList.contentInner loop: iterates over
listItem.contentwhich contains bothparagraph(text) and nestedbulletListnodes
Note
This structure differs from
to_markdown()where nestedtaskListnodes are siblings oftaskItemnodes, not children. SeeNodeTaskListfor comparison.See also
to_markdown()- same structure, uses numbersto_markdown()- different structure, single loop