-
I have a test document (docx) that uses letters for section (header) numbering. I'm trying to convert this to HTML while preserving the numbering found in the original document but no matter what setting or extension i've tried it generates numeric section ids. Running this command: Produces: <h1 data-number="1" id="hello"><span class="header-section-number">1</span> Hello</h1>
<p>This is a test document</p>
<h1 data-number="2" id="this-is-a-new-section"><span class="header-section-number">2</span> This is a new section</h1>
<p>More test text</p> I've tried creating a lua filter to inspect what information is available at runtime and I've noticed that headers (unlike lists) contain no numbering information:
Is there any way to accomplish this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, there is not. The docx reader does not store information about the specific numbering used. |
Beta Was this translation helpful? Give feedback.
No, there is not. The docx reader does not store information about the specific numbering used.
In pandoc, we regard numbering as something to be configured in the writer.