-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unwanted block quotes in lists when converting ODT generated from DOCX #9505
Comments
This has nothing to do with typst specifically; it's an odt reader issue. |
@jgm: Ah, I wasn't sure about that, since I couldn't immediately see the blockquotes in the native format dump, and it doesn't generate them with Markdown target. |
It's there in the native output: , BulletList
[ [ BlockQuote
[ Para
[ Str "Defining"
, Space
, Str "your"
, Space
, Str "target"
, Space
, Str "audience"
]
]
]
, [ BlockQuote
[ Para
[ Str "Creating"
, Space
, Str "book"
, Space
, Str "covers,"
, Space
, Str "titles,"
, Space
, Str "and"
, Space
, Str "subtitles"
]
]
]
, [ BlockQuote
[ Para
[ Str "Working"
, Space
, Str "with"
, Space
, Str "other"
, Space
, Str "authors"
]
]
]
] |
I think this is happening because the list items' paragraphs are indented. The ODT reader uses indentation as a heuristic for determining when we have a block quote. It is a similar issue to #8836, but the fix will have to be different because ODT is a different format. |
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
This generates the following list structure:
Pandoc version?
The text was updated successfully, but these errors were encountered: