Command line tool convert Markdown to Docx with nice Pandoc filter.
The command md2docx
uses a set of predefined Pandoc options and scripts to perform Docx conversion.
md2docx [options] [--- [CONVERTER ARGUMENTS]]
Options:
-V, --version output the version number
-c, --converter <PATH> Specific converter path. (default: "pandoc", env: MD2DOCX_CONVERTER_PATH)
--log-file <FILE> Write log messages to FILE.
--log-filter <STREAM> Filter log messages stream. (choices: "both", "stdout", "stderr")
-h, --help display help for command
For scenarios where md2docx
needs to be used in a WINE bottle environment,
you can achieve calling md2docx
installed on the host environment from the WINE bottle by creating a script link.
The command md2docx-link
is used to manage the md2docx
link in WINE bottles.
md2docx-link [options] <BOTTLE>
Arguments:
BOTTLE Specific WINE bottle.
Options:
-V, --version output the version number
-w, --wine-path <PATH> Specific WINE path. (default: "wine", env: MD2DOCX_WINE_PATH)
-u, --unlink Remove link.
-o, --output <PATH> New link PATH. (default: "C:\\windows\\system32\\md2docx.exe")
-h, --help display help for command
And md2docx
provides additional options for WINE scenarios.
--bottle <NAME> Specific WINE bottle.
-w, --wine-path <PATH> Specific WINE path. (default: "wine", env: MD2DOCX_WINE_PATH)
Convert xlsx to docx file by xlsx2md.
md2docx --- -f xlsx.lua -o test.docx test.xlsx