Add target param to wikimarkdown.

This commit is contained in:
Max Goodman
2013-04-25 02:48:01 -07:00
parent ebe3e3693d
commit fb28149495

View File

@@ -237,7 +237,7 @@ def safemarkdown(text, nofollow=False, wrap=True, **kwargs):
else:
return SC_OFF + text + SC_ON
def wikimarkdown(text, include_toc=True):
def wikimarkdown(text, include_toc=True, target=None):
from r2.lib.cssfilter import legacy_s3_url
def img_swap(tag):
@@ -252,7 +252,6 @@ def wikimarkdown(text, include_toc=True):
tag.extract()
nofollow = True
target = None
text = snudown.markdown(_force_utf8(text), nofollow, target,
renderer=snudown.RENDERER_WIKI)