Commit 92cddcea by benjaoming

add codehilite to default markdown extensions and close #134

parent e5cbdf45
...@@ -15,7 +15,7 @@ WIKI_LANGUAGE = 'markdown' ...@@ -15,7 +15,7 @@ WIKI_LANGUAGE = 'markdown'
EDITOR = getattr( django_settings, 'WIKI_EDITOR', 'wiki.editors.markitup.MarkItUp' ) EDITOR = getattr( django_settings, 'WIKI_EDITOR', 'wiki.editors.markitup.MarkItUp' )
MARKDOWN_KWARGS = { MARKDOWN_KWARGS = {
'extensions': ['footnotes', 'attr_list', 'headerid', 'extra',], 'extensions': ['footnotes', 'attr_list', 'headerid', 'extra', 'codehilite',],
'safe_mode': 'replace', 'safe_mode': 'replace',
'extension_configs': {'toc': {'title': _('Table of Contents')}}, 'extension_configs': {'toc': {'title': _('Table of Contents')}},
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment