Loading...
Loading...
Compare original and translation side by side
pandocbrew install pandocpython-docxlxmlclickpyyamlpandocbrew install pandocpython-docxlxmlclickpyyamlgit clone https://github.com/jonnyschneider/skills.git
cd skills/skills/md-to-docx-template
pip install python-docx lxml click pyyamlgit clone https://github.com/jonnyschneider/skills.git
cd skills/skills/md-to-docx-template
pip install python-docx lxml click pyyaml./md-to-docx.py input.md -o output.docx./md-to-docx.py input.md -o output.docx./create-reference-template.py template.docx \
--font-body "DM Sans" \
--font-heading "DM Sans" \
--accent-color "0D494D" \
--heading-color "0D494D"
./md-to-docx.py input.md -o output.docx --template template.docx./create-reference-template.py template.docx \
--font-body "DM Sans" \
--font-heading "DM Sans" \
--accent-color "0D494D" \
--heading-color "0D494D"
./md-to-docx.py input.md -o output.docx --template template.docxundefinedundefinedundefinedundefinedmanifest.yamltemplate: template.docx
output: final-document.docx
sections:
- 01-intro.md
- 02-content.md
- 03-conclusion.md./md-to-docx.py manifest.yaml --openmanifest.yamltemplate: template.docx
output: final-document.docx
sections:
- 01-intro.md
- 02-content.md
- 03-conclusion.md./md-to-docx.py manifest.yaml --open| Option | Description |
|---|---|
| Output DOCX path |
| Custom reference template |
| Generate table of contents |
| Open after building |
| Skip list indent fix (use with extract pipeline) |
| 选项 | 描述 |
|---|---|
| 输出DOCX文件路径 |
| 自定义参考模板 |
| 生成目录 |
| 转换完成后自动打开文档 |
| 跳过列表缩进修复(配合样式提取流程使用) |
| Option | Description |
|---|---|
| Body text font (default: Calibri) |
| Heading font (default: Calibri) |
| Code font (default: Consolas) |
| Table header color (hex, default: 4472C4) |
| Heading text color (hex, default: 000000) |
| 选项 | 描述 |
|---|---|
| 正文字体(默认:Calibri) |
| 标题字体(默认:Calibri) |
| 代码字体(默认:Consolas) |
| 表格标题颜色(十六进制值,默认:4472C4) |
| 标题文字颜色(十六进制值,默认:000000) |
rsvg-convertrsvg-convert