summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
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
)