# HG changeset patch # User Goffi # Date 1553535612 -3600 # Node ID a02ad4bc0a6d24e851ecf4eac6f125ea46291c53 # Parent f8427bf8c07294d53de31b8f03f7286b877ef749 plugin text syntaxes: activated useful markdown extensions: - code can now be highlighted, fenced code block can be used. - new lines are converted to hard breaks - sane lists are used - tables are available diff -r f8427bf8c072 -r a02ad4bc0a6d sat/plugins/plugin_misc_text_syntaxes.py --- a/sat/plugins/plugin_misc_text_syntaxes.py Mon Mar 25 18:40:11 2019 +0100 +++ b/sat/plugins/plugin_misc_text_syntaxes.py Mon Mar 25 18:40:12 2019 +0100 @@ -215,7 +215,20 @@ self.addSyntax( self.SYNTAX_MARKDOWN, - partial(markdown.markdown, extensions=[EscapeHTML()]), + partial(markdown.markdown, + extensions=[ + EscapeHTML(), + u'nl2br', + u'codehilite', + u'fenced_code', + u'sane_lists', + u'tables', + ], + extension_configs = { + u"codehilite": { + u"css_class": "highlight", + } + }), _html2text, [TextSyntaxes.OPT_DEFAULT], )