diff options
Diffstat (limited to 'markdown/extensions/meta.py')
-rw-r--r-- | markdown/extensions/meta.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/markdown/extensions/meta.py b/markdown/extensions/meta.py index 8983fc8..a3407da 100644 --- a/markdown/extensions/meta.py +++ b/markdown/extensions/meta.py @@ -17,17 +17,18 @@ Basic Usage: ... The body. This is paragraph one. ... ''' >>> md = markdown.Markdown(['meta']) - >>> md.convert(text) - u'<p>The body. This is paragraph one.</p>' - >>> md.Meta + >>> print md.convert(text) + <p>The body. This is paragraph one.</p> + >>> print md.Meta {u'blank_data': [u''], u'author': [u'Waylan Limberg', u'John Doe'], u'title': [u'A Test Doc.']} Make sure text without Meta Data still works (markdown < 1.6b returns a <p>). >>> text = ' Some Code - not extra lines of meta data.' >>> md = markdown.Markdown(['meta']) - >>> md.convert(text) - u'<pre><code>Some Code - not extra lines of meta data.\\n</code></pre>' + >>> print md.convert(text) + <pre><code>Some Code - not extra lines of meta data. + </code></pre> >>> md.Meta {} |