From e03f8a26488ea25be0b4355701eebe62040bcd53 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Wed, 8 May 2019 17:41:37 +0100 Subject: [PATCH] reverted table and image md --- aprendizations/tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aprendizations/tools.py b/aprendizations/tools.py index b91a239..ccdb0be 100644 --- a/aprendizations/tools.py +++ b/aprendizations/tools.py @@ -101,14 +101,14 @@ class HighlightRenderer(mistune.Renderer): return highlight(code, lexer, formatter) def table(self, header, body): - return (f'' - f'{header}{body}
') + return '' \ + + header + '' + body + '
' def image(self, src, title, alt): alt = mistune.escape(alt, quote=True) title = mistune.escape(title or '', quote=True) - return (f'') + return f'' # Pass math through unaltered - mathjax does the rendering in the browser def block_math(self, text): -- libgit2 0.21.2