fixed markin doctest failure, thanks Ramiroluz
This commit is contained in:
1 parent
e5e70fc34a
commit
530a60e0e6
2 files changed
+4
-4
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-03-19 15:40:54) dev
|
Version 1.99.7 (2012-03-19 15:43:26) dev
|
||||||
@@ -309,7 +309,7 @@ def render(text,extra={},allowed={},sep='p'):
|
|||||||
>>> render('this is\\n### a subsubsection\\nparagraph')
|
>>> render('this is\\n### a subsubsection\\nparagraph')
|
||||||
'<p>this is</p><h3>a subsubsection</h3><p>paragraph</p>'
|
'<p>this is</p><h3>a subsubsection</h3><p>paragraph</p>'
|
||||||
>>> render('**hello world**')
|
>>> render('**hello world**')
|
||||||
'<p><b>hello world</b></p>'
|
'<p><strong>hello world</strong></p>'
|
||||||
>>> render('``hello world``')
|
>>> render('``hello world``')
|
||||||
'<code class="">hello world</code>'
|
'<code class="">hello world</code>'
|
||||||
>>> render('``hello world``:python')
|
>>> render('``hello world``:python')
|
||||||
@@ -319,7 +319,7 @@ def render(text,extra={},allowed={},sep='p'):
|
|||||||
>>> render("''hello world''")
|
>>> render("''hello world''")
|
||||||
'<p><i>hello world</i></p>'
|
'<p><i>hello world</i></p>'
|
||||||
>>> render('** hello** **world**')
|
>>> 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')
|
>>> 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>'
|
'<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>'
|
'<p><audio src="http://example.com" controls></audio></p>'
|
||||||
|
|
||||||
>>> render('[[this is a **link** http://example.com]]')
|
>>> 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'))
|
>>> render("``aaa``:custom",extra=dict(custom=lambda text: 'x'+text+'x'))
|
||||||
'xaaax'
|
'xaaax'
|
||||||
|
|||||||
Reference in new issue
Block a user