Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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:

var mdtex = require("mdtex")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mdtex v1.2.3

Compile markdown into beautiful LaTeX document


Compile markdown into beautiful LaTeX document

Version Downloads/week License


$ npm install -g mdtex
$ mdtex
$ mdtex --help
Build a markdown file into a pdf

  $ mdtex [INPUT]

  INPUT  [default:] Markdown file to process

  -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

  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.

Extra syntax

Import statement

You can import another markdown file using the import syntax with a path relative to the current file.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free