rascunho

commit 6a8fe8c8b99d811344fddb20f53cbddd202b2a1b

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Use footnotes

 core/app.py | 5 +++--


diff --git a/core/app.py b/core/app.py
index f89ab0efe004dc5f8ad7abc90e1ccd87e86b0173..cc2ecfe8598e46b9c51fff0f2ee12a922c4e6bb2 100644
--- a/core/app.py
+++ b/core/app.py
@@ -17,7 +17,7 @@
         try:
             # TODO: Use the locale config, from my local package it doesn't
             # work as the package is out-of-date on Arch's Community Repository
-            humanize.i18n.activate(read_from_config("locale"))
+            humanize.i18n.activate("pt_BR")
             locale.setlocale(locale.LC_ALL, read_from_config("locale"))
             locale.setlocale(locale.LC_TIME, read_from_config("locale"))
         except:
@@ -51,7 +51,8 @@                 )))
 
         @self.template_filter()
         def md(text):
-            return mistune.markdown(text)
+            mark = mistune.create_markdown(plugins=['footnotes', 'task_lists', 'url'])
+            return mark.parse(text)
 
         @self.errorhandler(422)
         def handle_unprocessable_entity(e):