markdown2latex 1.3.1
Extension
Extension to python-markdown to support LaTeX (rather than html) output.
Authored by Rufus Pollock: <http://www.rufuspollock.org/>
Usage:
1. Command Line. A script entitled markdown2latex.py is automatically installed. For details of usage see help:
$ markdown2latex.py -h
As a python-markdown extension:
>>> import markdown >>> md = markdown.Markdown(None, extensions=['latex']) >>> # text is input string ... >>> latex_out = md.convert(text)
Directly as a module (slight inversion of std markdown extension setup):
>>> import markdown >>> import mdx_latex >>> md = markdown.Markdown() >>> latex_mdx = mdx_latex.LaTeXExtension() >>> latex_mdx.extendMarkdown(md, markdown.__dict__) >>> out = md.convert(text)
History
Version: 1.0 (November 15, 2006)
- First working version (compatible with markdown 1.5)
- Includes support for tables
Version: 1.1 (January 17, 2007)
- Support for verbatim and images
Version: 1.2 (June 2008)
- Refactor as an extension.
- Make into a proper python/setuptools package.
- Tested with markdown 1.7 but should work with 1.6 and (possibly) 1.5 (though pre/post processor stuff not as worked out there)
- Version 1.3: (July 2008)
- Improvements to image output (width)
- Version 1.3.1: (August 2009)
- Tiny bugfix to remove duplicate keyword argument and set zip_safe=False
- Add [width=\textwidth] by default for included images
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| markdown2latex-1.3.1.tar.gz (md5) | Source | 2009-08-06 17:09:56.560801 | 8KB | 57 | |
- Author: Rufus Pollock (Open Knowledge Foundation) <rufus [at] rufuspollock [dot] org>
- Home Page: http://www.okfn.org/okftext/
- Download URL: http://pypi.python.org/pypi/markdown2latex/
- Keywords: latex markdown python
- License: MIT
- Categories
- Package Index Owner: rgrp
- DOAP record: markdown2latex-1.3.1.xml
Log in to rate this package.
