Simplify FencedBlockPreprocessor.format_fence().

(imported from commit 741f4f0640756d545019b6fe6850af3198b351ba)
This commit is contained in:
Steve Howell 2013-11-20 13:47:06 -05:00
parent c0f312ec29
commit 46838ec6d0
1 changed files with 7 additions and 6 deletions

View File

@ -140,10 +140,11 @@ class FencedBlockPreprocessor(markdown.preprocessors.Preprocessor):
langclass = ''
if lang:
langclass = LANG_TAG % (lang,)
if lang in ('quote', 'quoted'):
replacement = self.format_quote(text)
return replacement
else:
code = self.format_code(langclass, lang, text)
placeholder = self.markdown.htmlStash.store(code, safe=True)
return placeholder