Commit 6975951ce0a5b3a10781b29175ce460843408d3e

Authored by Miguel Barão
1 parent 3aa7e128
Exists in master and in 1 other branch dev

- fixed indentation error in markdown code

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -89,9 +89,9 @@ class MarkdownWithMath(mistune.Markdown): @@ -89,9 +89,9 @@ class MarkdownWithMath(mistune.Markdown):
89 class HighlightRenderer(mistune.Renderer): 89 class HighlightRenderer(mistune.Renderer):
90 def block_code(self, code, lang='text'): 90 def block_code(self, code, lang='text'):
91 try: 91 try:
92 - lexer = get_lexer_by_name(lang, stripall=True) 92 + lexer = get_lexer_by_name(lang, stripall=False)
93 except: 93 except:
94 - lexer = get_lexer_by_name('text', stripall=True) 94 + lexer = get_lexer_by_name('text', stripall=False)
95 95
96 formatter = HtmlFormatter() 96 formatter = HtmlFormatter()
97 # FIXME indentation is striped from first line of code, seems bug in mistune 97 # FIXME indentation is striped from first line of code, seems bug in mistune