1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

[md] add support of 'tables', 'def_list'

This commit is contained in:
llj
2013-04-15 15:47:25 +08:00
parent 23467e08ca
commit 0c27dd2818
4 changed files with 6 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ window.onload = function () {
{% if filetype == 'Markdown' %}
{% ifnotequal file_content None %}
var converter = new Markdown.Converter();
Markdown.Extra.init(converter, {extensions: ["fenced_code_gfm"]});
Markdown.Extra.init(converter, {extensions: ["fenced_code_gfm", "tables", "def_list"]});
$('#md-view').html(converter.makeHtml('{{ file_content|escapejs }}')).children(':first').css('margin-top', '0');
{% endifnotequal %}
{% endif %}