This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
mdtex with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Compile markdown into beautiful LaTeX document
$ npm install -g mdtex $ mdtex
$ mdtex --help Build a markdown file into a pdf USAGE $ mdtex [INPUT] ARGUMENTS INPUT [default: index.md] Markdown file to process OPTIONS -B, --no-build Only parse markdown to LaTeX -o, --out=out [default: ./out] Output directory of LaTeX build result -w, --watch Watch this folder and rebuild when a file change DESCRIPTION Start the process of build by parsing the specified file and building it with pdflatex It will generate a tex file with the name of md file in the current directory. If it exists, it will be overriten.
You can import another markdown file using the import syntax with a path relative to the current file.