Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

Extension to python-markdown to support LaTeX (rather than html) output.

Authored by Rufus Pollock: <>


1. Command Line. A script entitled is automatically installed. For details of usage see help:

$ -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)


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
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
markdown2latex-1.3.1.tar.gz (9.0 kB) Copy SHA256 Checksum SHA256 Source Aug 6, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting