Skip to content

qxcv/python-markdown-math

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math extension for Python-Markdown

This extension adds math formulas support to Python-Markdown.

Installation

Use setup.py build and setup.py install to build and install this extension, respectively.

The extension name is markdown_mathjax, so you need to add that name to your list of Python-Markdown extensions. Check Python-Markdown documentation for details on how to load extensions.

Usage

To use this extension, you need to include MathJax library in HTML files, like:

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>

Math Delimiters

For inline math, use \(...\).

For standalone math, use $$...$$, \[...\] or \begin...\end.

The single-dollar delimiter ($...$) for inline math is disabled by default, but can be enabled by passing single_dollar_delimiter=True in the extension configuration.

About

Math extension for Python-Markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%