Generate professional .docx documents from Markdown text or fill data into .docx templates. Use when: converting markdown to Word, generating reports/contrac...
Generate professional .docx documents from Markdown, or fill data into .docx templates.
Core Principles
Zero Fabrication — Never invent content. If data is missing, use placeholder text ([待填写]) or ask the user.
Template Filling is XML-level — {{variable_name}} patterns are matched at the w:t XML node level inside the .docx. Values are sanitized to escape & < > " ' and remove control characters.
Security: Path Validation — Image paths must be relative or within the current working directory. Absolute paths (e.g. /tmp/...) and path traversal (..) are rejected.