Convert Markdown to formatted .docx with Chinese academic paper styling (宋体/Times New Roman, 首行缩进, 1.5倍行距).
Convert Markdown to formatted .docx with Chinese academic paper styling (宋体/Times New Roman, 首行缩进, 1.5倍行距).
Run the bundled script directly:
node scripts/md2docx.js input.md output.docx
Options:
--header <text> — add page header text--no-footer — disable page number footerRequires docx npm package installed locally:
npm install
| Element | Font | Size | Style |
|---|
H1 # | 宋体 | 16pt bold | 左对齐 |
H2 ## | 宋体 | 14pt bold | 左对齐 |
H3 ### | 宋体 | 12pt bold | 左对齐 |
| Body | 宋体 | 12pt (小四) | 两端对齐, 首行缩进2字符 |
[1] ref markers | Times New Roman | 10.5pt (五号) | superscript |
| Page margin | — | 1 inch (1440 DXA) | — |
| Line spacing | — | 1.5x (360) | — |
**bold** → bold text*italic* → italic text[1], [2][3] → superscript reference markers in Times New Roman.md file path.docx path (same name, different extension)node <skill-path>/scripts/md2docx.js "input.md" "output.docx" --header "Header Text"
For documents requiring custom formatting (e.g., specific title centering, keyword lines, reference sections with different font sizes), generate the docx directly using docx-js API with inline JavaScript rather than relying on the bundled script. See the docx skill for full API reference.