Here is a long question for (hopefully) a simple answer. Take the following command to convert from docx to gfm.
pandoc -f docx myfile.docx -t gfm -o myfile.md
In Word, I use the List Number paragraph style for numbered lists. The first item of each new list is overridden with Restart at 1. (In Word, you right-click the paragraph, and then click Restart at 1). So here is an example of how two lists look in Word.
The first list ends. A few paragraphs are here. Then a new list begins.
When Pandoc converts this to markdown (gfm), the second list, second item numbering is messed up. Here is an example of the Markdown output.
The list ends. A few paragraphs are here. Then a new list begins.
The second list, second item should be 2, but it is 3. This is because Pandoc recognizes Restart at 1, but then it does not begin the next list number from that restarted number. Instead, it begins the next number as continued from the last number of the previous list.
I've tried various options and extensions to fix this with no luck. Here is what doesn't work:
Any other suggestions?
--