docx title number format lost after convert to markdown
source at MS office:
converted:
The Issue: Incorrect List Numbering Your Markdown document has an ordered list where the numbering incorrectly resets. Item 1: 1. 产品名称规格、价格及备注 (1. Product Name, Specifications, Price, and Remarks) Item 2: 1. 质量要求技术标准、供方对质量负责的条件和期限。 (1. Quality Requirements, Technical Standards, and Conditions/Term for Supplier's Responsibility for Quality.) The second item should be numbered 2.
The Cause This happens because the table block is breaking the continuity of the list. Most Markdown parsers interpret the content between the two numbered items (the table) as a complete break, causing them to start a new list for the second item.
The Solution: Indent the Content To fix this, you must indent the table so that the Markdown parser understands it is a child element belonging to the first list item (1.). By indenting every line of the table with four spaces, you nest it inside the first point, maintaining the list's sequence.
Simply add four spaces before each line of the table block.
-
产品名称规格、价格及备注
序号 组件 功能及资源容量说明 投标报价合计 (人民币元) (含税):伍佰伍拾万圆整 -
质量要求技术标准、供方对质量负责的条件和期限。
By applying this indentation, the renderer will correctly process the list as a single continuous sequence, numbering the second item as 2.
hey @asimhusain-ai , thank you for your clear description.
expect for incorrect number, I hope it can keep original number "一、二", which is Chinese high-frequency serial number。for Chinese user, we care "一、二" lost most than it's order. thanks a lot