豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

docx -> typst silently failing to extract media when shape present #11510

@RayBB

Description

@RayBB

Explain the problem.
Command: pandoc --extract-media=. image_bug.docx -o image_bug.typ
Input file: image_bug.docx

Edit: here's a second example file: image_bug2.docx

I would expect the output to be a image_bug.typ containing some text with an image and a media folder with one image in it.
Unfortunately, it doesn't output the media folder or have a link to the image. It just shows some text.

I'm not sure what's going on with this Word document. I isolated the issue down the to smallest reproducible bug which was just the text and the image. If the text is removed the image seems to work fine. Also, this is an extract from a document I did not create so I cannot explain why the text is inside the shape like that. However, it's probably a case that should cause an error or be handled appropriately.

As always, thanks for taking the type to help with this!

Pandoc version?
pandoc 3.9 on macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions