8000 Possibly invalid test: definition-list.docx · Issue #10394 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Possibly invalid test: definition-list.docx #10394
Closed
@StephanMeijer

Description

@StephanMeijer

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:

word/document.xml of definition-list.docx

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:

Screenshot illustrating Microsoft Word

Pandoc version?
Latest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0