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!

A lightweight markdown to html converter.

Project Description

mark3 provides a lightweight, markdown to html parser for python 2.7 and 3.


Using mark3 is very simple:

from mark3.markdown import markdown
html = markdown(raw_text)


mark3 may differ slightly from the official markdown implementation.

If you find a difference between mark3’s output and the official markdown’s not mentioned here, please open a ticket.


A <p> will be placed in an <li> if, and only if it’s needed:

* foo
* bar

Will produce the same output as:

* foo

* bar

Inline HTML

This markdown:

< foo <b>bar</b>>


<p>&lt; foo <b>bar</b>&gt;</p>

Instead of the official markdown implementation output:

<p>&lt; foo <b>bar</b>></p>


Tabs are expanded to 4 spaces before parsing. As such, output will never contain tabs.

Insignificant Whitespace

Outputted html doesn’t have as much insignificant whitespace as the official markdown implementation.

Release History

This version
History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(7.2 kB) Copy SHA256 Hash SHA256
Source Aug 8, 2011

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