mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
c8ee9dc545
Previously, when a w:p paragraph contained runs with textboxes, the entire paragraph was replaced by just the textbox content, discarding all other runs (including image-bearing runs). Now we walk the paragraph's children in order, grouping non-textbox content into copies of the original w:p and splicing unwrapped textbox content in place, preserving the original order. We also treat text inside a textbox containing an image as a figure caption. (One often finds captioned images of this kind in docx files.) Closes #11510. Closes #6893. Closes #11412. Closes #5394. Closes #9633. Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
984 B
Plaintext
45 lines
984 B
Plaintext
[ Figure
|
|
( "" , [] , [] )
|
|
(Caption
|
|
Nothing
|
|
[ Para
|
|
[ Str "1"
|
|
, Space
|
|
, Str "Daniel"
|
|
, Space
|
|
, Str "Schliebner:"
|
|
, Space
|
|
, Str "Cantor'sches"
|
|
, Space
|
|
, Str "Diagonalverfahren."
|
|
, Space
|
|
, Str "Von"
|
|
, Space
|
|
, Str "Mengen,"
|
|
, Space
|
|
, Str "Unendlichkeiten"
|
|
, Space
|
|
, Str "und"
|
|
, Space
|
|
, Str "Wahnsinn,"
|
|
, Space
|
|
, Str "Pdf:"
|
|
, Space
|
|
, Str
|
|
"https://www2.informatik.hu-berlin.de/~kossahl/Uni/Ma1/Cantor.pdf"
|
|
]
|
|
])
|
|
[ Plain
|
|
[ Image
|
|
( ""
|
|
, []
|
|
, [ ( "width" , "2.3680555555555554in" )
|
|
, ( "height" , "0.9340277777777778in" )
|
|
]
|
|
)
|
|
[]
|
|
( "media/image1.emf" , "" )
|
|
]
|
|
]
|
|
]
|