mark3 0.1.2

A lightweight markdown to HTML converter
mark3 is a Python tool that provides a lightweight, markdown to html parser for Python 2.7 and 3.

Usage

Using mark3 is very simple:

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


Deviations

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.

Lists

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

Produces:

< p >< foo < b >bar< /b >>< /p >

Instead of the official markdown implementation output:

< p >< foo < b >bar< /b >>< /p >

Tabs

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.

last updated on:
August 9th, 2011, 19:31 GMT
price:
FREE!
homepage:
bitbucket.org
license type:
MIT/X Consortium License 
developed by:
Joseph Marshall
category:
ROOT \ Text Editing&Processing \ Markup
mark3
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT