Files
pandoc/test/command/9183.docx
T
Caio Vinícius 6cb2494cb8 Docx reader: merge adjacent styled code blocks (#11977)
Without `+styles`, consecutive "Source Code" paragraphs are combined
into a single code block by `combineBlocks`. With `+styles`, each
paragraph is first wrapped in a `Div` carrying its `custom-style`
attribute, so the `CodeBlock` case no longer matched and every line
became its own `Div [CodeBlock]`.

Add a case that merges adjacent `Div [CodeBlock]` blocks when both the
`Div` and the `CodeBlock` attributes are equal.

Closes #9183.
2026-10-29 12:43:19 -07:00

10 KiB