Markdown equation processing as a command line script
This is a convenience wrapper for gulp-markdown-equations. That package requires a custom gulpfile in your project, which is a pain. This project takes a simple workflow and wraps it in a cli utility. The result is:
for your markdown documents.
$ npm install -g mdtex-cli
Process all files matching *.mdtex
in the current directory, outputting them as *.md
and equations into ./images
:
$ mdtex
Process a specific file:
$ mdtex README.mdtex --output README.md --imageDirectory ./image-files
You will need the following commands accessible in your PATH
variable in order to use this utility:
pdflatex
convert
(optional for trimming, part of the ImageMagick suite)pdftocairo
(part of the Poppler package)$ mdtex --help
Usage: cli [options] <file ...>
Options:
-h, --help output usage information
-V, --version output the version number
-i, --input <file> input file
-o, --output <file> output file destination
-d, --imageDirectory <path> image output destination
(c) 2015 Ricky Reusser. ISC License.