diff options
author | luxagraf <sng@luxagraf.net> | 2018-10-07 21:04:32 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-10-07 21:04:32 -0500 |
commit | 1251d41ea2eb47983a42697771c30568eb767d78 (patch) | |
tree | 5e5ac32bd2362601ca109705daf4d2bcb77f91cf /app/utils | |
parent | ffcba7a415171a9c065e9b5b913eeac12c37e4b0 (diff) | |
parent | d81991b2498463e46fa5abc71e63f2c1da29cfd6 (diff) |
Merge branch 'master' of ssh://lux2:/home/lxf/git/luxagraf
Diffstat (limited to 'app/utils')
-rw-r--r-- | app/utils/util.py | 8 |
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 ) |