Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 355 Bytes
>>> import markdown2
>>> hasattr(markdown2, "__version__")
True
>>> hasattr(markdown2, "__version_info__")
True
>>> str( markdown2.markdown("*boo*") )
'<p><em>boo</em></p>\n'
>>> m = markdown2.Markdown()
>>> str( m.convert("*boo*") )
'<p><em>boo</em></p>\n'
>>> m = markdown2.MarkdownWithExtras()
>>> str( m.convert("*boo*") )
'<p><em>boo</em></p>\n'