@popovnx/md-to-docx-dstu
v0.0.7
Published
Combine Markdown and DOCX fragments into a single DOCX
Readme
@popovnx/md-to-docx-dstu
CLI for combining Markdown and DOCX fragments into a single DOCX file with docx.
The tool reads endeavour.toml, loads .md and .docx files from the configured pages directory, applies [[VARNAME]] substitutions, and writes the configured output file.
Usage
npx @popovnx/md-to-docx-dstu init
npx @popovnx/md-to-docx-dstuThe default command is render, so the second line is equivalent to:
npx @popovnx/md-to-docx-dstu renderIf the package has been installed globally or linked locally, the exposed CLI command is:
md-to-docx init
md-to-docxConfiguration
endeavour.toml controls three paths:
pages: input directory for.mdand.docxfilesimages: image directory used while rendering Markdownoutput: final DOCX file path
The repository ships with an example config in endeavour.toml.
Supported content
- Headings (
#and##) - Paragraphs with inline formatting
- Bullet and numbered lists
- Tables
- Fenced code blocks
- Images and centered captions
- Explicit
\newpagemarkers
Notes
- Paths in
endeavour.tomlare resolved relative to that file. - The layout is conservative: A4 portrait, Arial body text, centered figure captions, and monospaced code blocks.
