pub fn to_markdown(doc: &Document) -> String
Markdown:按块渲染(表格 → Markdown 表格)。
相邻同类型列表块(如 HTML 的 <li> 逐条产出)合并为一个列表,避免中间插空行 被渲染成多个「松散列表」;跨页不合并。
<li>