From d81991b2498463e46fa5abc71e63f2c1da29cfd6 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 8 Oct 2018 02:04:16 +0000 Subject: updated some stuff to work on Ubuntu 18.04 --- app/utils/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/utils') 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 ) -- cgit v1.2.3-70-g09d2