#825 by GitHub stars

Achuan-2/pandoc_docx_template

Use this skill when converting Markdown to Word DOCX or DOCX back to Markdown with Pandoc, especially when the output should use the bundled Chinese Word reference templates, heading numbering variants, list indentation variants, SCI paper templates, and Lua filters for HTML tags, image captions, fo

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

SKILL.md

Week of Oct 26, 2026 · +0 / −0 lines

Before Network or broad shell → After Network or broad shell

8f94b9938b24 → 8f94b9938b24

Diff text is unavailable under the recorded licenses. Line counts and the GitHub link remain available.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit 8f94b9938b24bf7aa79e2a8190ef73fa97533f37

1.1kGitHub stars
1star in 7 days
1skill in this repository
0commits in 30 days

Heat

1.5
  • Star growth, last 7 daysAhead of 36% of tracked repositories
  • Star growth, last 24 hoursAhead of 3% of tracked repositories
  • Rank movement, last 7 daysAhead of 3% of tracked repositories
  • Commits, last 30 daysAhead of 0% of tracked repositories
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekAhead of 0% of tracked repositories

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Aug 2, 2026Nov 1, 20261,104

Individual skills in this repository

How it works

pandoc-docx-template

When your agent uses it

Use this skill when converting Markdown to Word DOCX or DOCX back to Markdown with Pandoc, especially when the output should use the bundled Chinese Word reference templates, heading numbering variants, list indentation variants, SCI paper templates, and Lua filters for HTML tags, image captions, font color, and inline code styles.

What it loads into context

Frontmatter

74 tokens

Always available to the agent

SKILL.md

978 tokens

When the skill is activated

Reference documents

5,712 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Overview
  2. Workflow
  3. Markdown to DOCX
  4. DOCX to Markdown
  5. Lua Filters
  6. Validation

Scripts executed separately

  • lua/add-inline-code.lua
  • lua/image-title-to-caption-add-number.lua
  • lua/image-title-to-caption.lua
  • lua/markdown-html-recognition.lua
  • lua/preserve_font_color.lua
  • markdown-to-docx.lua
  • scripts/docx2md.py
  • scripts/md2docx.py

Files

  • .gitignoreasset5 bytes
  • CHANGELOG.mddoc3,185 bytes
  • README.docxasset3,932,098 bytes
  • README.mddoc15,698 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • SKILL.mdcore4,278 bytes
  • agents/openai.yamlasset279 bytes
  • lua/add-inline-code.luaruns193 bytes
  • lua/image-title-to-caption-add-number.luaruns2,601 bytes
  • lua/image-title-to-caption.luaruns2,002 bytes
  • lua/markdown-html-recognition.luaruns8,897 bytes
  • lua/preserve_font_color.luaruns3,409 bytes
  • markdown-to-docx.luaruns2,654 bytes
  • scripts/docx2md.pyruns2,083 bytes
  • scripts/md2docx.pyruns4,395 bytes
  • templates/template_sci论文-标题不编号.docxasset28,256 bytes
  • templates/template_sci论文-标题编号.docxasset28,518 bytes
  • templates/template_标题不编号-列表第二行缩进.docxasset28,129 bytes
  • templates/template_标题不编号-列表第二行顶格-无首行缩进.docxasset28,099 bytes
  • templates/template_标题不编号-列表第二行顶格.docxasset28,304 bytes
  • templates/template_标题编号-列表第二行缩进.docxasset27,986 bytes
  • templates/template_标题编号-列表第二行顶格.docxasset27,947 bytes

No excerpt is shown for this license. Read the source on GitHub.

View the complete source on GitHub

Skills included

  • pandoc-docx-template

Repository facts

License
No license detected
Created
Dec 14, 2023
Last pushed
Jul 9, 2026
Forks
112
Open issues
1
Project activity
Slowing

Rank over the last 12 weeks

Now #825 · best #542 · down 176 in 30 days

  1. #807 on Oct 31
  2. #808 on Nov 1
  3. #816 on Nov 2
  4. #820 on Nov 3
  5. #824 from Nov 4 to Nov 5
  6. #825 since Nov 6
58 earlier periods
  1. #532 on Aug 2
  2. #532 on Aug 7
  3. #526 on Aug 8
  4. #535 on Aug 9
  5. #555 on Aug 10
  6. #556 on Aug 11
  7. #558 on Aug 13
  8. #556 on Aug 14
  9. #542 on Aug 15
  10. #554 on Aug 16
  11. #560 on Aug 17
  12. #575 on Aug 18
  13. #563 on Aug 19
  14. #564 on Aug 20
  15. #569 on Aug 21
  16. #551 on Aug 22
  17. #574 on Aug 23
  18. #577 on Aug 24
  19. #593 on Aug 25
  20. #580 on Aug 26
  21. #586 on Aug 27
  22. #599 on Aug 28
  23. #584 on Aug 31
  24. #599 on Sep 1
  25. #592 on Sep 3
  26. #572 on Sep 5
  27. #602 on Sep 9
  28. #596 on Sep 11
  29. #596 on Sep 13
  30. #613 on Sep 15
  31. #623 on Sep 17
  32. #600 on Sep 19
  33. #618 on Sep 20
  34. #629 on Sep 21
  35. #638 on Sep 23
  36. #612 on Sep 24
  37. #611 on Sep 25
  38. #633 on Sep 27
  39. #640 on Sep 28
  40. #674 on Sep 29
  41. #654 on Sep 30
  42. #638 on Oct 4
  43. #641 on Oct 5
  44. #649 on Oct 6
  45. #690 on Oct 8
  46. #670 on Oct 9
  47. #674 on Oct 13
  48. #689 on Oct 14
  49. #677 on Oct 15
  50. #694 on Oct 16
  51. #665 on Oct 18
  52. #703 on Oct 19
  53. #704 on Oct 23
  54. #677 on Oct 24
  55. #790 on Oct 25
  56. #797 on Oct 28
  57. #801 on Oct 29
  58. #803 on Oct 30

Before you install

Network or broad shell

Automated signals, not a guarantee

Checked Nov 3, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 7 notes
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
Show all 69 signals by file

CHANGELOG.md

  • Network accessline 36
    pandoc --reference-doc template.docx -s input.md  -o output.docx --lua-filter image-title-to-caption.lua     ```     相关博客:https://www.achuan-2.top/post/pandoc-exports-markdown-as-docx-how-to-modify-image-title-to-title-text-instead-of-alt-t
  • Network accessline 38
    相关博客:https://www.achuan-2.top/post/pandoc-exports-markdown-as-docx-how-to-modify-image-title-to-title-text-instead-of-alt-text-19kkpr.html
  • Network accessline 44
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/PixPin_2024-12-03_21-30-13-2024-12-03.png)
  • Network accessline 50
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/PixPin_2024-12-02_15-27-00-2024-12-02.png)
  • Network accessline 56
    - 🐛 页边距设置为常规 - ✨ 修改blockquote导出样式,设置文本块后续样式依然是文本块     ![1705302906882Snipaste_2024-01-15_15-15-04.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705302906882Snipaste_2024-01-15_15-15-04.png)
  • Network accessline 57
    - ✨ 修改blockquote导出样式,设置文本块后续样式依然是文本块     ![1705302906882Snipaste_2024-01-15_15-15-04.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705302906882Snipaste_2024-01-15_15-15-04.png) - ✨ 添加有序列表设置右对齐,这样编号1和11可以对齐(不顶格模板暂时没设置)
  • Network accessline 58
    ![1705302906882Snipaste_2024-01-15_15-15-04.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705302906882Snipaste_2024-01-15_15-15-04.png)
  • Network accessline 59
    - ✨ 添加有序列表设置右对齐,这样编号1和11可以对齐(不顶格模板暂时没设置)     ![1705300595618Snipaste_2024-01-15_14-36-29.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705300595618Snipaste_2024-01-15_14-36-29.png) - ✨ 添加列表第二行顶格模板
  • Network accessline 60
    ![1705300595618Snipaste_2024-01-15_14-36-29.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705300595618Snipaste_2024-01-15_14-36-29.png)
  • Network accessline 61
    - ✨ 添加列表第二行顶格模板     列表第二行不顶格     ![1705299592624Snipaste_2024-01-15_14-19-46.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705299592624Snipaste_2024-01-15_14-19-46.png)
  • Network accessline 62
    列表第二行不顶格     ![1705299592624Snipaste_2024-01-15_14-19-46.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705299592624Snipaste_2024-01-15_14-19-46.png)     列表第二行顶格效果
  • Network accessline 63
    ![1705299592624Snipaste_2024-01-15_14-19-46.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705299592624Snipaste_2024-01-15_14-19-46.png)
  • Network accessline 65
    ![1705299404618Snipaste_2024-01-15_14-16-34.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1705299404618Snipaste_2024-01-15_14-16-34.png)

README.md

  • Network accessline 3
    <a href="https://www.star-history.com/?repos=Achuan-2%2Fpandoc_docx_template&type=date&legend=top-left">
  • Network accessline 4
    [Credential-related source omitted]
  • Network accessline 5
    [Credential-related source omitted]
  • Network accessline 6
    [Credential-related source omitted]
  • Network accessline 7
    [Credential-related source omitted]
  • Network accessline 25
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119195423-2026-01-19.png)
  • Network accessline 29
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119194848-2026-01-19.png)
  • Network accessline 34
    - 标题编号 or 不编号 - 列表第二行缩进 or 列表第二行顶格     <img  alt="image" src="https://github.com/user-attachments/assets/f1443f6e-92d1-495c-bead-c5cf510675e7" />
  • Network accessline 36
    <img  alt="image" src="https://github.com/user-attachments/assets/f1443f6e-92d1-495c-bead-c5cf510675e7" />
  • Network accessline 69
    <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" />
  • Network accessline 74
    <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" />
  • Network accessline 78
    <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" />
  • Network accessline 85
    <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" />
  • Network accessline 89
    <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" />
  • Network accessline 104
    帮我安装这个 skill:https://github.com/Achuan-2/pandoc_docx_template
  • Network accessline 112
    <img alt="PixPin_2026-05-17_18-14-59" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_18-14-59-20260517181501-phkv6e5.png" />
  • Network accessline 117
    <img alt="PixPin_2026-05-17_18-17-55" src="https://assets.b3logfile.com/siyuan/1610205759005/assets/PixPin_2026-05-17_18-17-55-20260517181800-k2i6z8j.png" />
  • Network accessline 149
    - [pandoc 导出docx如何对图表进行编号](https://zhuanlan.zhihu.com/p/1996674548762944192)
  • Network accessline 150
    - [pandoc将markdown导出为docx,如何修改图片标题为title文本而不是alt文本](https://zhuanlan.zhihu.com/p/1947343878836459221)
  • Network accessline 151
    - [pandoc 导出markdown为word不支持html标签](https://zhuanlan.zhihu.com/p/1947342033103623722)
  • Network accessline 152
    - [pandoc 将Markdown/Html导出为Docx,如何保留字体颜色](https://zhuanlan.zhihu.com/p/1996639589587231070)
  • Network accessline 154
    其他经验博客 - [设置word模板,Markdown 也能自动转换为美观规范的 Word 文档](https://zhuanlan.zhihu.com/p/581000852)
  • Network accessline 155
    - [设置word模板,Markdown 也能自动转换为美观规范的 Word 文档](https://zhuanlan.zhihu.com/p/581000852)
  • Network accessline 156
    - [全网找不到满意的 Markdown 转 Docx 模板,那就自己动手吧](https://zhuanlan.zhihu.com/p/672376543)
  • Network accessline 157
    - [科研写作之Docx格式(Word)与Markdown如何互转](https://zhuanlan.zhihu.com/p/1984680822465376921)
  • Network accessline 168
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260122112727-2026-01-22.png)
  • Network accessline 188
    点击「多级列表」,点击「定义新的多级列表」,打开弹窗后点击「更多」进行展开 ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119203219-2026-01-19.png)
  • Network accessline 189
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119203219-2026-01-19.png)
  • Network accessline 191
    在「定义新的多级列表」弹窗,对每个级别设置编号格式和对应的标题 ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119203402-2026-01-19.png)
  • Network accessline 192
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119203402-2026-01-19.png)
  • Network accessline 196
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119204001-2026-01-19.png)
  • Network accessline 200
    ![](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20260119204205-2026-01-19.png)
  • Network accessline 206
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014846.png)<U+200B>
  • Possible obfuscationline 206
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014846.png)<U+200B>
  • Network accessline 216
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014078.png)<U+200B>
  • Possible obfuscationline 216
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014078.png)<U+200B>
  • Network accessline 218
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014745.png)<U+200B>
  • Possible obfuscationline 218
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014745.png)<U+200B>
  • Network accessline 227
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014510.png)<U+200B>
  • Possible obfuscationline 227
    <U+200B>![image](https://raw.githubusercontent.com/Achuan-2/PicBed/pic/assets/202312150014510.png)<U+200B>
  • Network accessline 262
    ![1749176940350PixPin_2025-06-06_10-28-00.png](https://fastly.jsdelivr.net/gh/Achuan-2/PicBed@pic/assets/1749176940350PixPin_2025-06-06_10-28-00.png)
  • Network accessline 264
    pandoc 相关issue:[When pandoc sets a Word template, it cannot set highlight-style · Issue #10896 · jgm/pandoc](https://github.com/jgm/pandoc/issues/10896)
  • Network accessline 271
    <img src="https://fastly.jsdelivr.net/gh/Achuan-2/PicBed/assets/20241128221208-2024-11-28.png" width="50%" >

lua/add-inline-code.lua

  • Executable scriptline 1
    Executable file

lua/image-title-to-caption-add-number.lua

  • Network accessline 1
    -- Author: Achuan-2 -- https://github.com/Achuan-2/pandoc_word_template/blob/main/image-title-to-caption-add-number.lua
  • Executable scriptline 1
    Executable file
  • Network accessline 2
    -- https://github.com/Achuan-2/pandoc_word_template/blob/main/image-title-to-caption-add-number.lua

lua/image-title-to-caption.lua

  • Network accessline 1
    -- Author: Achuan-2 -- https://github.com/Achuan-2/pandoc_word_template/blob/main/image-title-to-caption.lua
  • Executable scriptline 1
    Executable file
  • Network accessline 2
    -- https://github.com/Achuan-2/pandoc_word_template/blob/main/image-title-to-caption.lua

lua/markdown-html-recognition.lua

  • Network accessline 1
    -- REF:https://github.com/WingDr/siyuan-plugin-citation/blob/main/scripts/citation.lua
  • Executable scriptline 1
    Executable file

lua/preserve_font_color.lua

  • Executable scriptline 1
    Executable file

markdown-to-docx.lua

  • Executable scriptline 1
    Executable file

scripts/docx2md.py

  • Executable scriptline 1
    #!/usr/bin/env python3

scripts/md2docx.py

  • Executable scriptline 1
    #!/usr/bin/env python3

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

Some files could not be read; the facts below still hold.

Signal confidence: 5 facts
  • Network access in code of documentationREADME.md:104Low confidence
  • Possible obfuscation in prose of documentationREADME.md:206Low confidence
  • Possible obfuscation in prose of documentationREADME.md:216Low confidence
  • Possible obfuscation in prose of documentationREADME.md:218Low confidence
  • Possible obfuscation in prose of documentationREADME.md:227Low confidence

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeCompatibleStandard SKILL.md SKILL.md.claude/skills/<skill-name>/
CodexCompatibleStandard SKILL.md SKILL.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotCompatibleStandard SKILL.md SKILL.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.

Explore alternatives and comparisons

Add this badge to your README

It updates every night and links to this page.

Achuan-2/pandoc_docx_template: #825 on hotskills, 1.1k stars

[![Achuan-2/pandoc_docx_template on hotskills](https://hotskills.dev/badge/achuan-2-pandoc_docx_template.svg)](https://hotskills.dev/skill/achuan-2-pandoc_docx_template/)