From d34bab75868a9505fef5edbf089d6962ff48330e Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Wed, 12 Jun 2019 09:09:59 +0200 Subject: [PATCH] Fix table render --- app.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index 60917c6..af0e5ca 100644 --- a/app.py +++ b/app.py @@ -28,13 +28,16 @@ def inject_now(): def render(filename): - if filename in renders: - return renders[filename] - else: - ren = Markup(markdown( - "".join(open("data/"+filename, encoding="UTF-8").readlines()))) - renders[filename] = ren - return ren + return Markup(markdown( + "".join(open("data/"+filename, encoding="UTF-8").readlines()), + use_file_vars=True, + extras=["use-file-vars", "tables"])) + # if filename in renders: + # return renders[filename] + # else: + # ren = "" + # renders[filename] = ren + # return ren @app.route('/')