luffysolution-svg452 downloadsRight-click a document to parse it into Markdown with MinerU or markitdown, saving the note and image attachments to custom folders. 右键解析文档为 Markdown,正文与图片附件分别保存到自定义位置。
Right-click any document to parse it into Markdown with MinerU or markitdown, saving the note and image attachments to custom folders. 右键解析文档为 Markdown,正文与图片附件分别保存到自定义位置。
MinerU Parser adds a right-click "Parse document" action to Obsidian's file explorer. It converts PDFs, Office files, and images into clean Markdown and saves the note plus any extracted image attachments to folders you configure.
It supports seven parsing backends so you can pick the right trade-off between quality, cost, and privacy:
Other features: batch parsing of a multi-file selection with backend-aware
concurrency, customizable save paths with {filename} / {date} / {noteName}
variables, attachment renaming, and success / failure notices.
This plugin is desktop-only (isDesktopOnly: true) because the local CLI
backends spawn processes and result extraction relies on a bundled unzip library.
Supported file types: pdf, doc, docx, ppt, pptx, xls, xlsx, png, jpg, jpeg, jp2, webp, gif, bmp, html.
The rest of this document is written in Chinese. 以下为中文说明。
{filename} {date} {noteName}。{noteName}-{序号} / {date}-{序号} / 自定义模板。支持的文件类型 / Supported: pdf, doc, docx, ppt, pptx, xls, xlsx, png, jpg, jpeg, jp2, webp, gif, bmp, html。
通过 BRAT 安装可自动获取更新:
luffysolution-svg/mineru-to-obsidianmanifest.json 与 main.js。<vault>/.obsidian/plugins/mineru-to-obsidian/。git clone https://github.com/luffysolution-svg/mineru-to-obsidian.git
cd mineru-to-obsidian
npm install && npm run build
将生成的 main.js 与 manifest.json 复制到插件目录即可。
本插件为 桌面端专用(
isDesktopOnly: true),因 markitdown 后端需要本地进程,且结果解压依赖打包库。
| 模式 | 是否需要 Token | 限制 | 图片附件 |
|---|---|---|---|
| 免费 (Agent API) | 否 | ≤ 10MB / ≤ 20 页 | ✗ |
| Precision API | 是 | ≤ 200MB / ≤ 200 页 | ✓ |
pip install 'markitdown[all]'
markitdown,可在设置中改为完整路径。用 OpenAI 兼容接口的视觉模型识别图片中的文字并转为 Markdown。markitdown 的 CLI 无法驱动 LLM,因此这是插件内独立实现的后端(直接调用 /chat/completions),天然兼容各类 OpenAI 兼容服务与中转站。
| 配置项 | 说明 |
|---|---|
| API 地址 / Base URL | 如 https://api.openai.com/v1 或中转站地址 |
| API Key | 鉴权密钥(中转站 key 同样填这里) |
| 模型 / Model | 须支持图片输入,如 gpt-4o、gpt-4o-mini、qwen-vl-max |
| 提示词 / Prompt | 发送给模型的指令,决定输出风格 |
/models 拉取可用模型列表,拉取后模型项变为下拉选择。png / jpg / jpeg / webp / gif / bmp。其他文档请用 MinerU 或 markitdown。用 DeepSeek-OCR? DeepSeek-OCR 是开源自托管模型,无官方托管 API。可经第三方(如硅基流动 SiliconFlow)以 OpenAI 兼容接口调用:地址填
https://api.siliconflow.cn/v1,模型填deepseek-ai/DeepSeek-OCR,其余同上。
百度智能云「文档解析」接口,支持 PDF / 图片 / Office,直接输出含表格、公式、版面的 Markdown。鉴权用 API Key + Secret Key 换取 access_token(插件自动处理)。
| 配置项 | 说明 |
|---|---|
| API Key | 应用的 API Key(client_id) |
| Secret Key | 应用的 Secret Key(client_secret) |
| 公式识别 / Formula | 是否识别文档中的公式 |
pip install docling
docling,可在设置中改为完整路径。合合 TextIn xParse「文档解析」接口,支持 PDF / 图片 / Office,直接输出含表格、公式、版面的 Markdown。单次同步调用,鉴权用 App ID + Secret Code。
| 配置项 | 说明 |
|---|---|
| App ID | 请求头 x-ti-app-id |
| Secret Code | 请求头 x-ti-secret-code |
Doc2X 文档解析接口,擅长 PDF 的公式 / 表格 / 版面,直接输出 Markdown。异步流程:上传后插件自动轮询直到完成。鉴权用 Bearer API Key(形如 sk-...)。
| 配置项 | 说明 |
|---|---|
| API Key | Bearer 鉴权密钥(形如 sk-...) |
{filename}(原文件名)、{date}(YYYY-MM-DD)、{noteName}。MinerU/{filename} 与 MinerU/{filename}/images。markitdown 解析 PDF 出现满屏 (cid:NN)?
该 PDF 使用了自定义编码且无 ToUnicode 映射的嵌入字体,markitdown(基于 pdfminer,无 OCR)无法解码。插件会检测到此情况并报错提示。请改用 MinerU 后端(设置 → 解析后端 → MinerU),它具备 OCR 与版面分析能力。
markitdown 中文显示为 ���(乱码)? 已在 v0.1.2 修复:插件强制 Python 以 UTF-8 输出(PYTHONUTF8),解决中文 Windows 下控制台编码导致的乱码。请更新到最新版本。
后端如何选择?
插件不显示? 安装/更新后需在 Obsidian 中重载(Ctrl+P → "Reload app without saving"),并确认未开启「受限模式」。
npm install
npm run dev # watch 模式
npm run build # 生产构建(含类型检查)
MIT