sun | 公众号:十一营养师74 downloads把 Word (.docx) 文档导入为 Markdown 笔记,提取图片和替代文字,保留标题、列表、表格与链接,并列出没能导入的内容。
English | 简体中文
Daoru is a desktop-only Obsidian plugin that imports Microsoft Word documents (.docx and .docm) as Markdown notes. It converts the document structure, saves embedded images into your vault, and ends every import with a report of what was lost or downgraded, so you can see exactly what did not make it into the note.
Requires Obsidian 1.14.4 or later. The plugin interface is currently in Chinese; the display name in Obsidian is Daoru and the plugin ID is sun-daoru.
source and imported frontmatter, and normalize heading levels for documents built around a Title style.导入 Word 文档… from the command palette..docx or .docm files.Multiple files are always imported as new notes. Inserting into the current note requires exactly one file and an open Markdown note in edit mode.
Click the folder-import icon in the ribbon, or run 导入 Word 文件夹… from the command palette. Daoru recreates the selected folder and its subfolders under the destination folder, then imports every Word file it finds.
Empty folders, non-Word files, hidden items (~$ temporary files or names starting with a dot), node_modules, and __MACOSX are skipped. Folder import always creates new notes.
| Word content | Result in the note |
|---|---|
| Headings | Markdown headings |
| Bulleted and numbered lists | Markdown lists |
| Simple tables | Markdown tables |
| Complex tables | HTML tables, including merged cells and nested content |
| External links | Markdown links |
| Internal jumps | Link removed, link text kept |
| Images | Extracted as attachments; Word alt text becomes image alt text |
| Bold, italic, underline, strikethrough, superscript, subscript | Matching Markdown or HTML inline formatting |
| Text in text boxes | Kept when it can be read; otherwise listed in the import report |
【公式未导入】 marker at its original position and is counted in the report.EMF, WMF, TIFF, and other image formats that Obsidian cannot preview are saved as files and shown as attachment links. The original is not discarded.
Every import ends with a per-file report:
Lost items include comments, headers and footers, equations, charts and embedded objects, externally linked images, internal jumps, text from text boxes that could not be read, and deleted tracked changes. Each item shows a count and, where possible, a short sample of the affected content. Visible equations are also marked in the note at their original positions; searching for 公式未导入 jumps to each one.
Daoru also compares text segments from the document XML with the generated Markdown and reports paragraphs it cannot find. This catches content loss outside the known categories. If that warning appears, keep the original document for troubleshooting.
By default, attachments follow Obsidian's "Files & Links" attachment setting. You can enable "Per-document attachment folder" to save images to <note name>-附件/ next to the note, or use a fixed folder relative to the vault root.
When the per-document folder is on, inserting into the current note places attachments next to that note.
| Setting | Default | Description |
|---|---|---|
| Default import action | New note | Create a new note or insert into the current note. Batch and folder imports always create new notes. |
| Per-document attachment folder | Off | Save images to <note name>-附件/ beside the note. |
| Attachment location | Follow Obsidian | Used when the per-document folder is off. Follow Obsidian's Files & Links setting or use a fixed folder. |
| Attachment folder | 附件/导入 |
Custom folder relative to the vault root. Created automatically when needed. |
| Normalize heading levels | Off | If the document uses a Title style, move other headings down one level. |
| Add source information on new notes | Off | Add source (original name or relative path) and imported (date) frontmatter. |
| Open note after import | On | Open the first successfully created note. |
The import dialog also lets you choose the destination folder and whether to add source information for the current batch.
| Action | Where |
|---|---|
| Import Word documents | Ribbon import icon; command palette 导入 Word 文档… |
| Import Word folder | Ribbon folder icon; command palette 导入 Word 文件夹… |
sun-daoru/ folder with main.js, manifest.json, and styles.css.<vault>/.obsidian/plugins/sun-daoru/.When upgrading an existing installation, keep the folder name sun-daoru and replace the three files inside it.
git clone https://github.com/shiyi-sun/obsidian-plugins-sun-daoru.git
cd obsidian-plugins-sun-daoru
npm install
npm run build
Copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/sun-daoru/.
.docx and .docm are supported. Legacy .doc files must be saved as .docx first.Daoru is made by sun. WeChat official account: 十一营养师.
Source and releases:
MIT