Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
设置Markdown导出为docx时的样式,可控制导出docx的段落文字、标题编号等样式,适用于obsidian、typora、思源笔记等Markdown笔记软件,支持Codex、Claude Code等调用skill丨Template for exporting Markdown to docx (Word) using pandoc
| Date | Stars |
|---|---|
| 2026-07-31 | 1002 |
| 2026-08-06 | 1010 |
Today
+8 stars today
This week
— stars this week
This month
— stars this month
Momentum
32.0
growth rate 0.00%/day
## Star History
<a href="https://www.star-history.com/?repos=Achuan-2%2Fpandoc_docx_template&type=date&legend=top-left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=Achuan-2/pandoc_docx_template&type=date&theme=dark&legend=top-left&sealed_token=3yf6BizOWcOhV9m8ZDq_IV6I7udWM7ZeUtLv5jmby0wBpkuiSRDIIA2KbSLIpHNJgG2-WEOrDgP3o7L3c1JaQtmC90Ei2CuFN4EyczkRXEtO4OJwSIG3Iw1WpAuwVTbLIL4x90irpaK66E-MDIE3LgXOdIXjrrRuv7258hLS3IqEZSxV1ZfV-4pWlruo" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=Achuan-2/pandoc_docx_template&type=date&legend=top-left&sealed_token=3yf6BizOWcOhV9m8ZDq_IV6I7udWM7ZeUtLv5jmby0wBpkuiSRDIIA2KbSLIpHNJgG2-WEOrDgP3o7L3c1JaQtmC90Ei2CuFN4EyczkRXEtO4OJwSIG3Iw1WpAuwVTbLIL4x90irpaK66E-MDIE3LgXOdIXjrrRuv7258hLS3IqEZSxV1ZfV-4pWlruo" />
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=Achuan-2/pandoc_docx_template&type=date&legend=top-left&sealed_token=3yf6BizOWcOhV9m8ZDq_IV6I7udWM7ZeUtLv5jmby0wBpkuiSRDIIA2KbSLIpHNJgG2-WEOrDgP3o7L3c1JaQtmC90Ei2CuFN4EyczkRXEtO4OJwSIG3Iw1WpAuwVTbLIL4x90irpaK66E-MDIE3LgXOdIXjrrRuv7258hLS3IqEZSxV1ZfV-4pWlruo" />
</picture>
</a>
> 大多数 Markdown 笔记应用程序使用 Pandoc 将笔记转换为 Word 文档,例如我主要使用的思源笔记。然而,Pandoc 默认导出的 Word 文档样式往往不美观,不符合中文排版习惯。
>
> 幸运的是,pandoc 可以自定义 Word 模板,用于导出时的自动格式化以美化文档,但是很奇怪的是,全网很少有人分享自己是如何具体制作模板的,就算提到也只是泛泛而谈。我自己在制作模板中遇到很多问题,比如怎么设置表格样式、怎么设置列表样式。这里分享下目前在用的 word 模板,也当做一个抛砖引用,希望有更多人能分享自己的模板!😁
## 前排提示
- 本模板仅在Windows端的Office Word进行测试,可能不适用于**WPS**和**苹果端的Office**。
## 样式预览
pandoc 不设置模板导出 docx 的样式

设置本模板导出 docx 的样式

## 模板介绍
- 标题编号 or 不编号
- 列表第二行缩进 or 列表第二行顶格
<img alt="image" src="https://github.com/user-attachments/assets/f1443f6e-92d1-495c-bead-c5cf510675e7" />
- sci论文模板:
- 正文双倍行距
- 使用引述块作为Figure图注样式
- 添加行号
## 如何使用此模板
### 通过pandoc命令使用
pandoc通过 `--reference-doc `参数来设置模板路径,可以使用下面命令来设置导出Word(.docx)模板:
```bash
pandoc input.md --reference-doc templates/template_标题不编号-列表第二行顶格.docx -o output.docx
```
为保证Markdown中的HTML标签转换正常,可以使用下面命令:
```bash
pandoc README.md -t html | \
pandoc -f html -o README.docx \
--reference-doc templates/template_标题不编号-列表第二行顶格.docx
```
### 在笔记软件使用
- **Typora如何设置导出为Word(.docx)的模板**
在Typora的偏好设置中的「导出-Word(.docx)」设置样式文件路径
<img alt="PixPin_2026-05-17_16-46-12" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_16-46-12-20260517164614-82839lh.png" />
- **思源笔记如何设置导出为Word(.docx)的模板**
在思源笔记的设置中的「导出-Pandoc执行参数」设置`--reference-doc "word模板路径"`
<img alt="PixPin_2026-05-17_17-20-28" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_17-20-28-20260517172031-ihus3h7.png" />
然后即可通过文档块的菜单的「导出-Word(.docx)」按钮导出为Word(.docx)
<img alt="PixPin_2026-05-17_17-20-55" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_17-20-55-20260517172101-dbm1lkh.png" />
- Obsidian如何设置导出为Word(.docx)的模板
安装**obsidian-enhancing-export插件**
在插件设置的「编辑命令模板」,选择Word(.docx),设置自定义参数为`--reference-doc "word模板路径"`
<img alt="PixPin_2026-05-17_17-08-56" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_17-08-56-20260517170858-2crlf4r.png" />
然后即可点击文档右键菜单中的「导出为……」导出为Word(.docx)
<img alt="PixPin_2026-05-17_17-11-32" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_17-11-32-20260517171134-9kwxous.png" />
### 在 Agent 中使用
本仓库已经提供了可供 Agent 识别的 `SKILL.md`,适合在 Codex,Claude Code 等支持 Skill 的 Agent 中使用。当用户要求“把 Markdown 转成 Word”“套用中文 Word 模板导出 docx”“使用本仓库模板转换文档”时,Agent 会使用本仓库的 `pandoc-docx-template` skill。
默认会使用 `templates/template_标题不编号-列表第二行顶格.docx` 作为 Word 参考模板,并加载 `markdown-to-docx.lua` 过滤器,以便处理图片标题、字体颜色、行内代码等 Pandoc 默认转换效果不理想的内容。
Agent 安装Skill方式:
方式一:让AI自己安装
在 Claude Code、Codex、OpenClaw 等支持 Skill 的 AgentExcerpt of 10,498 characters
Read on GitHub102
chaochaoweb3
1
Would you bet a product on this? Bounded 0–100 and slow moving.
Not classified yet. Classification runs as part of npm run ingest.