summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-10-08 02:04:16 +0000
committerluxagraf <sng@luxagraf.net>2018-10-08 02:04:16 +0000
commitd81991b2498463e46fa5abc71e63f2c1da29cfd6 (patch)
treeff9f725b4ebdaf3366b66f1854704a3197571b0a /app/utils
parentc3dce77e272f3b3616d7989145a90d7ea905e624 (diff)
updated some stuff to work on Ubuntu 18.04
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/util.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/utils/util.py b/app/utils/util.py
index 1ceb699..6678fc9 100644
--- a/app/utils/util.py
+++ b/app/utils/util.py
@@ -11,11 +11,17 @@ def markdown_to_html(txt):
md = markdown.Markdown(
extensions=[
'markdown.extensions.fenced_code',
- 'markdown.extensions.codehilite(css_class=highlight,linenums=False)',
+ 'markdown.extensions.codehilite',
'markdown.extensions.attr_list',
'footnotes',
'extra'
],
+ extension_configs = {
+ 'markdown.extensions.codehilite': {
+ 'css_class': 'highlight',
+ 'linenums': False
+ },
+ },
output_format='html5',
safe_mode=False
)