Python-Markdown — Python-Markdown 3.8 documentation (original) (raw)

This is a Python implementation of John Gruber’sMarkdown. It is almost completely compliant with the reference implementation, though there are a few very minor differences. See John’sSyntax Documentationfor the syntax rules.

To get started, see the installation instructions, the library reference, and the command line interface.

Goals

The Python-Markdown project is developed with the following goals in mind:

Note

This is not a CommonMark implementation; nor is it trying to be! Python-Markdown was developed long before the CommonMark specification was released and has always (mostly) followed the syntax rules and behavior of the original reference implementation. No accommodations have been made to address the changes which CommonMark has suggested. It is recommended that you look elsewhere if you want an implementation which follows the CommonMark specification.

Features

In addition to the basic markdown syntax, Python-Markdown supports the following features:

Differences

While Python-Markdown strives to fully implement markdown as described in thesyntax rules, the rules can be interpreted in different ways and different implementations occasionally vary in their behavior (see theBabelmark FAQfor some examples). Known and intentional differences found in Python-Markdown are summarized below:

Support

You may report bugs, ask for help, and discuss various other issues on the bug tracker.