Hi jgran, I'm using Pandoc 2.18 for Windows for docx-to-html5 conversions while I do the docx-to-PDF conversions directly by other means (Acrobat, Word Save as PDF). I have no problems with the html5 conversions and the --number-section option except that unnumbered section headers in Word get numbered too. I solved this by creating a different Word paragraph style "Headline" without numbering and applying the +styles extension, i.e. -f docx+styles, and added a "div[data-custom-style="Headline"] p" entry to the css file for selecting and formatting that paragraph style upon html5 rendering. However, I have not been able to get figure, table, and equation numbering consistently rendered in html5. I want to include chapter and section numbers in front of those numbers so I'm using fields like "{ STYLEREF 2 \s }.{ SEQ Equation \* ARABIC \s 2 }". I also tried Word's "Insert caption" command but that didn't work either. Typically, the html shows"1.." instead of "1.1.1", i.e. only the chapter number is included. Best regards, On Wednesday, 20 April 2022 at 19:26:51 UTC+9 jgran wrote: > Hi, > > how to correctly convert Word documents (.docx) which have numbered > sections while keeping numbering? > The numbers become paragraphs when translated into other formats (markdown > or pdf for instance) and remain on a line above the header text. > a.docx: > 1. Header 1 > 1.1. Header 2 > 2. Header 1 > > a.md > 1. # Header 1 > > 1. ## Header 2 > > 2. # Header 1 > > What's the best way to deal with this situation? should I somehow remove > numbering and use --number-section in a second step? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9761f078-45b4-46e2-8197-511e2ae188bfn%40googlegroups.com.