microsoft / microsoft/markitdown

docx转md 图片保存地址问题

Open
#1,496 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
186k
Forks
13.7k
Avg merge
1d 4h
Merged PRs (30d)
49

Description

代码:
from markitdown import MarkItDown

md = MarkItDown()
result = md.convert(
"test_docx/before-电容黑板说明书V3.docx",
conversion_name="demo", # 只用子目录名
image_output_dir="/root/wangjianqiang/word2md/images" # 绝对路径根目录
)
print(result.text_content)

我是在linux上运行的,发现保存的地址为什么了去了D盘?
*

  • 、、、、![说明: 说明: 说明: 说明: H{RW{5]AO6PQ9KECYSV%@(T](data:image/jpeg;base64...)是

或者这种无法保存图片的
|

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Linux example through MarkItDown.convert with the provided DOCX, conversion_name, and image_output_dir values. Inspect how the conversion handles embedded image paths and data URIs; done means the generated Markdown no longer uses the source machine's D: paths and extracted images can be saved to the requested directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.