Download the PHP package cebe/markdown-latex without Composer
On this page you can find all versions of the php package cebe/markdown-latex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cebe/markdown-latex
More information about cebe/markdown-latex
Files in cebe/markdown-latex
Package markdown-latex
Short Description A super fast, highly extensible markdown parser for PHP, that converts markdown files into latex
License MIT
Homepage https://github.com/cebe/markdown-latex#readme
Informations about the package markdown-latex
markdown-latex
A markdown parser for converting markdown to LaTeX written in PHP.
Implementation based on cebe/markdown.
Installation
PHP 5.4 or higher is required to use it.
Installation is recommended to be done via composer by adding the following to the require
section in your composer.json
:
Run composer update
afterwards.
Usage
In your PHP project
To use the parser as is, you just create an instance of a provided flavor class and call the parse()
-
or parseParagraph()
-method:
The command line script
You can use it to render this readme:
bin/markdown-latex README.md > output.tex
Using github flavored markdown:
bin/markdown-latex --flavor=gfm README.md > output.tex
or convert the original markdown description to html using the unix pipe:
curl http://daringfireball.net/projects/markdown/syntax.text | bin/markdown-latex > output.tex
To create a latex document you have to include the generated latex source in a latex document main.tex
:
make a PDF with pdflatex main.tex
.