Esempio n. 1
0
def markdown_souptest(text, nofollow=False, target=None, renderer='reddit'):
    if not text:
        return text
    
    if renderer == 'reddit':
        smd = safemarkdown(text, nofollow=nofollow, target=target)
    elif renderer == 'wiki':
        smd = wikimarkdown(text)

    souptest_fragment(smd)

    return smd
Esempio n. 2
0
def markdown_souptest(text, nofollow=False, target=None, renderer='reddit'):
    if not text:
        return text

    if renderer == 'reddit':
        smd = safemarkdown(text, nofollow=nofollow, target=target)
    elif renderer == 'wiki':
        smd = wikimarkdown(text)

    souptest_fragment(smd)

    return smd
Esempio n. 3
0
 def assertFragmentValid(self, fragment):
     souptest_fragment(fragment)
Esempio n. 4
0
 def assertFragmentValid(self, fragment):
     souptest_fragment(fragment)