René's URL Explorer Experiment


Title: Render bullet lists as proper ProseMirror nodes in from_markdown() by yf-chau · Pull Request #35 · ma2za/python-substack · GitHub

Open Graph Title: Render bullet lists as proper ProseMirror nodes in from_markdown() by yf-chau · Pull Request #35 · ma2za/python-substack

X Title: Render bullet lists as proper ProseMirror nodes in from_markdown() by yf-chau · Pull Request #35 · ma2za/python-substack

Description: Summary from_markdown() strips bullet markers (* / -) but emits each item as an independent paragraph node instead of a bullet_list containing list_item children. This means

  • tags are rendered as plain text paragraphs rather than as a formatted list on Substack. Before (current behavior) Each bullet becomes a flat paragraph —
  • elements are lost: {"type": "paragraph", "content": [{"type": "text", "text": "Item 1"}]}, {"type": "paragraph", "content": [{"type": "text", "text": "Item 2"}]}, {"type": "paragraph", "content": [{"type": "text", "text": "Item 3"}]} After (this PR) Consecutive bullets are grouped into a proper bullet_list node, producing correct