You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何让Microsoft开源库markitdown在转换Docx文档时保留批注?

如何让Microsoft开源库markitdown在转换Docx文档时保留批注?

我最近在用Microsoft推出的开源Python库markitdown转换Docx文档,它在Python 3.10及以上版本运行正常(3.9版本没法用),基本功能都没问题,但发现它不会转换文档里的批注。有没有谁知道有没有办法让它在转换结果里包含批注呀?

from markitdown import MarkItDown

md = MarkItDown()
result = md.convert("my_doc.docx")
with open("my_doc.md", "w", encoding='utf-8') as file:
    file.write(result.text_content)

备注:内容来源于stack exchange,提问作者Bogdan_Ch

火山引擎 最新活动