Compiles markdown into LaTeX

Timothy Rice c98cfc9d15 Unset executable bits on source files. пре 9 година
.gitignore 6e3b70d7f0 Initial commit. пре 9 година
LICENSE ff492b431f Add licence and README. пре 9 година
Makefile 25e82a8beb Convert pandoc-style emdashes (double dash) to LaTeX triple dash. пре 9 година
README.md 00db51429d Mention new minted option. пре 9 година
args.h a2146e9006 Add option to render code using minted. пре 9 година
latex.c 6761fe6c72 Add math-explicit to extensions. пре 9 година
latex.h e897f65d31 Don't escape dollar signs since Hoedown interprets inline math as normal text. пре 9 година
main.c 21108b155f Make things a bit safer by checking for bad memory (re)allocation. пре 9 година
main.h c98cfc9d15 Unset executable bits on source files. пре 9 година
postproc.c c98cfc9d15 Unset executable bits on source files. пре 9 година
postproc.h b998e849d8 General tidy up and bug fixes. пре 9 година
str_split.c b998e849d8 General tidy up and bug fixes. пре 9 година
str_split.h b998e849d8 General tidy up and bug fixes. пре 9 година
yaml_parser.c 21108b155f Make things a bit safer by checking for bad memory (re)allocation. пре 9 година
yaml_parser.h e15ba4e567 Put the yaml data into a buffer before parsing so we don't have to use rewind (which doesn't play well with pipes and input redirection). пре 9 година

README.md

mdtex

Compile markdown to LaTeX.

Uses various extensions to provide more-or-less compatibility with Github Markdown and Pandoc Markdown.

Usage: mdtex [-m] [FILE]

If FILE is not specified, reads from stdin.

If -m is specified, syntax highlight code blocks using minted. Depending on your setup, this may or may not require installing and configuring additional Python and/or LaTeX packages. Furthermore, you will need to pass the -shell-escape flag to pdflatex.

Dependencies

Optional dependencies

  • pygmentize (for syntax highlighting using minted).