fix pre block indentation/spaces

This commit is contained in:
math2001
2016-11-26 14:25:24 +11:00
parent 5c194de103
commit 1113fda8a1
4 changed files with 81 additions and 62 deletions

View File

@ -1740,7 +1740,7 @@ class Markdown(object):
codeblock = codeblock.replace(old, new)
return codeblock
lexer = self._get_pygments_lexer(lexer_name)
if lexer:
if lexer and self.extras.get('no-code-highlighting', True) is True:
codeblock = unhash_code( codeblock )
colored = self._color_with_pygments(codeblock, lexer,
**formatter_opts)