This page contains the Markdown Package documentation.
A fast and complete Python implementation of Markdown.
[from http://daringfireball.net/projects/markdown/] > Markdown is a text-to-HTML filter; it translates an easy-to-read / > easy-to-write structured text format into HTML. Markdown’s text > format is most similar to that of plain text email, and supports > features such as headers, emphasis, code blocks, blockquotes, and > links. > > Markdown’s syntax is designed not as a generic markup language, but > specifically to serve as a front-end to (X)HTML. You can use span-level > HTML tags anywhere in a Markdown document, and you can use block level > HTML tags (like <div> and <table> as well).
Module usage:
>>> import markdown2 >>> markdown2.markdown("*boo!*") # or use `html = markdown_path(PATH)` u'<p><em>boo!</em></p>\n'>>> markdowner = Markdown() >>> markdowner.convert("*boo!*") u'<p><em>boo!</em></p>\n' >>> markdowner.convert("**boom!**") u'<p><strong>boom!</strong></p>\n'
This implementation of Markdown implements the full “core” syntax plus a number of extras (e.g., code syntax coloring, footnotes) as described on <http://code.google.com/p/python-markdown2/wiki/Extras>.
Bases: object
Bases: gluon.contrib.markdown.markdown2.Markdown
A markdowner class that enables most extras:
These are not included: - pyshell (specific to Python-related documenting) - code-friendly (because it disables part of the syntax) - link-patterns (because you need to specify some actual
link-patterns anyway)