Python Tutorial

Showing posts with label Markdown. Show all posts
Showing posts with label Markdown. Show all posts

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.