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