fixed markin doctest failure, thanks Ramiroluz

This commit is contained in:
Massimo Di Pierro
2012-03-19 15:43:30 -05:00
parent e5e70fc34a
commit 530a60e0e6
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-03-19 15:40:54) dev
Version 1.99.7 (2012-03-19 15:43:26) dev
+3 -3
View File
@@ -309,7 +309,7 @@ def render(text,extra={},allowed={},sep='p'):
>>> render('this is\\n### a subsubsection\\nparagraph')
'<p>this is</p><h3>a subsubsection</h3><p>paragraph</p>'
>>> render('**hello world**')
'<p><b>hello world</b></p>'
'<p><strong>hello world</strong></p>'
>>> render('``hello world``')
'<code class="">hello world</code>'
>>> render('``hello world``:python')
@@ -319,7 +319,7 @@ def render(text,extra={},allowed={},sep='p'):
>>> render("''hello world''")
'<p><i>hello world</i></p>'
>>> render('** hello** **world**')
'<p>** hello** <b>world</b></p>'
'<p>** hello** <strong>world</strong></p>'
>>> render('- this\\n- is\\n- a list\\n\\nand this\\n- is\\n- another')
'<ul><li>this</li><li>is</li><li>a list</li></ul><p>and this</p><ul><li>is</li><li>another</li></ul>'
@@ -347,7 +347,7 @@ def render(text,extra={},allowed={},sep='p'):
'<p><audio src="http://example.com" controls></audio></p>'
>>> render('[[this is a **link** http://example.com]]')
'<p><a href="http://example.com">this is a <b>link</b></a></p>'
'<p><a href="http://example.com">this is a <strong>link</strong></a></p>'
>>> render("``aaa``:custom",extra=dict(custom=lambda text: 'x'+text+'x'))
'xaaax'