Python Tutorial

Friday, September 7, 2012

Python Markdown module

Python markdown is intended to be a python library module used by various projects to convert Markdown syntax into HTML.
Markdownld install pip command (pip install markdown)

import markdown

md = markdown.Markdown(safe_mode=True)
html = md.convert(content) #'html' is converted html data

Here very nice documentation of markdown. You may read it.


Post a Comment