From 497932647e2bb489ce29c9cefd549e10f752757d Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Tue, 14 Oct 2008 21:52:15 -0400 Subject: Added extension doctests to the regression tests and fixed a few broken doctests in CodeHilite and WikiLinks extentions. --- markdown_extensions/wikilinks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'markdown_extensions/wikilinks.py') diff --git a/markdown_extensions/wikilinks.py b/markdown_extensions/wikilinks.py index 0d06100..0caeb48 100644 --- a/markdown_extensions/wikilinks.py +++ b/markdown_extensions/wikilinks.py @@ -12,7 +12,7 @@ Basic usage: >>> text = "Some text with a [[WikiLink]]." >>> html = markdown.markdown(text, ['wikilinks']) >>> html - u'

Some text with a WikiLink.

' + u'

Some text with a WikiLink.

' Whitespace behavior: @@ -26,7 +26,7 @@ To define custom settings the simple way: >>> markdown.markdown(text, ... ['wikilinks(base_url=/wiki/,end_url=.html,html_class=foo)'] ... ) - u'

Some text with a WikiLink.

' + u'

Some text with a WikiLink.

' Custom settings the complex way: @@ -46,7 +46,7 @@ Use MetaData with mdx_meta.py (Note the blank html_class in MetaData): ... wiki_end_url: .html ... wiki_html_class: ... - ... Some text with a WikiLink.""" + ... Some text with a [[WikiLink]].""" >>> md = markdown.Markdown(extensions=['meta', 'wikilinks']) >>> md.convert(text) u'

Some text with a WikiLink.

' @@ -54,7 +54,7 @@ Use MetaData with mdx_meta.py (Note the blank html_class in MetaData): MetaData should not carry over to next document: >>> md.convert("No [[MetaData]] here.") - u'

No MetaData here.

' + u'

No MetaData here.

' From the command line: -- cgit v1.2.3