Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Extension

Project description

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
  1. As a python-markdown extension:

    import markdown
    md = markdown.Markdown(None,
        extensions=['latex'])
    # text is input string ...
    latex_out = md.convert(text)
    
  2. 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for markdown2latex, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size markdown2latex-1.2-py2.5.egg (15.2 kB) File type Egg Python version 2.5 Upload date Hashes View
Filename, size markdown2latex-1.2.tar.gz (8.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page