File: api.doctests

package info (click to toggle)
python-markdown2 2.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,104 kB
  • sloc: python: 5,416; perl: 1,493; php: 865; makefile: 34
file content (17 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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