diff --git a/templates/snippets/file_content_js.html b/templates/snippets/file_content_js.html index 1cdf76d0e6..2bce6cd1ef 100644 --- a/templates/snippets/file_content_js.html +++ b/templates/snippets/file_content_js.html @@ -46,7 +46,8 @@ window.onload = function () { {% if filetype == 'Markdown' %} {% ifnotequal file_content None %} - var converter = new Showdown.converter(); + var converter = new Markdown.Converter(); + Markdown.Extra.init(converter, {extensions: ["fenced_code_gfm"]}); $('#md-view').html(converter.makeHtml('{{ file_content|escapejs }}')).children(':first').css('margin-top', '0'); {% endifnotequal %} {% endif %} diff --git a/templates/snippets/file_view_js.html b/templates/snippets/file_view_js.html index f652bf43f5..ce3b5e28e2 100644 --- a/templates/snippets/file_view_js.html +++ b/templates/snippets/file_view_js.html @@ -11,5 +11,6 @@ {% endif %} {% if filetype == 'Markdown' %} - + + {% endif %}