aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/__init__.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:00:11 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-03 19:00:11 -0700
commit526ee41b187a2373c08679bc9bc582679beaa9ef (patch)
treef723352512c3ef1eeae295d47213b7bdae1a8a4f /python/fatcat_web/__init__.py
parent29645fd07086d0b10c8a645d204487f1d2b6b03e (diff)
downloadfatcat-526ee41b187a2373c08679bc9bc582679beaa9ef.tar.gz
fatcat-526ee41b187a2373c08679bc9bc582679beaa9ef.zip
markdown rendering of comments/annotations
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r--python/fatcat_web/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 7d62bb5f..bd0a1888 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -4,6 +4,7 @@ from flask_uuid import FlaskUUID
from flask_debugtoolbar import DebugToolbarExtension
from flask_login import LoginManager
from flask_wtf.csrf import CSRFProtect
+from flask_misaka import Misaka
from authlib.flask.client import OAuth
from loginpass import create_flask_blueprint, Gitlab
from raven.contrib.flask import Sentry
@@ -19,6 +20,14 @@ toolbar = DebugToolbarExtension(app)
FlaskUUID(app)
app.csrf = CSRFProtect(app)
+# This is the Markdown processor; setting default here
+Misaka(app,
+ autolink=True,
+ no_intra_emphasis=True,
+ strikethrough=True,
+ escape=True,
+)
+
login_manager = LoginManager()
login_manager.init_app(app)
login_manager.login_view = "/auth/login"