Skip to main content

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.

Source Distribution

markdown2latex-1.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

markdown2latex-1.2-py2.5.egg (15.2 kB view details)

Uploaded Egg

File details

Details for the file markdown2latex-1.2.tar.gz.

File metadata

  • Download URL: markdown2latex-1.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for markdown2latex-1.2.tar.gz
Algorithm Hash digest
SHA256 8baa38da9befe4c9f4d143e2b0f84c9766dc4201f8f5ac76d1e50ef17a90f59a
MD5 3f366e76c2229a96fc28806283ad342a
BLAKE2b-256 fc88106a18545a2de2a4b8403985a15b89ee3a02ee559f7057e8b8addf2d7703

See more details on using hashes here.

File details

Details for the file markdown2latex-1.2-py2.5.egg.

File metadata

File hashes

Hashes for markdown2latex-1.2-py2.5.egg
Algorithm Hash digest
SHA256 ab09c658e67ad5c3f9bcfd335dfe5de20239617ee872e9a361736919bd2a80bf
MD5 dcef508af270e0442c8551862619c96b
BLAKE2b-256 94cbc89e50a6e8d6ba0fb26a4be8c68ca8ae5a878c6e4b594d3faba1081119a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page