Description
Explain the problem.
I have observed that in the < 6113 code class="notranslate">word/document.xml file of the definition_list.docx test document — available at test/docx/definition_list.docx and test/docx/golden/definition_list.docx — some paragraphs have two styles applied simultaneously. This is illustrated in the following snippet:
According to the OOXML standard (ECMA-376), a paragraph should have only one style defined via the <w:pStyle>
element within its properties. The standard does not indicate, suggest, or provide examples where multiple styles are applied directly to a single paragraph.
This raises a concern that the definition_list.docx
file may be invalid per the OOXML specification due to multiple styles being assigned to a single paragraph.
Microsoft Word interprets this paragraph to be of style "SourceCode"
, not "Definition"
as illustrated in the following screenshot:
Pandoc version?
Latest.