Skip to content

Unwanted block quotes in lists when converting ODT generated from DOCX  #9505

Closed
@mathrick

Description

@mathrick

Explain the problem.
This might be related to #8836. It seems that the fixes to native DOCX reader were not propagated to other affected formats like ODT, even though that issue does mention .odt in a comment.

The file in question has been generated by LibreOffice (using official Ubuntu 22.0 packages) from DOCX (same source file as in #9504): How-to-Become-a-Best-Selling-Author.odt

$ libreoffice --convert-to odt How-to-Become-a-Best-Selling-Author.docx
$ libreoffice --version
LibreOffice 7.3.7.2 30(Build:2)
$ pandoc How-to-Become-a-Best-Selling-Author.odt -o How-to-Become-a-Best-Selling-Author.typ

This generates the following list structure:

In this article you will learn the basics about three things:

- #quote(block: true)[
  Defining your target audience
  ]

- #quote(block: true)[
  Creating book covers, titles, and subtitles
  ]

- #quote(block: true)[
  Working with other authors
  ]

Pandoc version?

$ pandoc --version
pandoc 3.1.12.1
Features: +server +lua
Scripting engine: Lua 5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions