diff --git a/README.md b/README.md index cd9bd01..86cfc21 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Added features include: - Output of HTML5 - Support [Markdown](https://daringfireball.net/projects/markdown/ "Markdown homepage") formatting in `` elements, powered by the - [Pagedown library](https://code.google.com/archive/p/pagedown/ "Pagedown homepage") + [markdown-it library](https://github.com/markdown-it/markdown-it) You can see a nice example result here: diff --git a/xs3p.xsl b/xs3p.xsl index d596d11..febfe7e 100644 --- a/xs3p.xsl +++ b/xs3p.xsl @@ -159,12 +159,12 @@ - https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js + https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js - https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6 + https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7 @@ -301,11 +301,8 @@ - - - + + @@ -427,7 +424,7 @@ $(function () { $("[data-toggle='tooltip']").tooltip(); }); $(function () { $("[data-toggle='popover']").popover(); }); - var c = new Markdown.Converter(); + var c = window.markdownit(); $('.xs3p-doc').each(function(i, obj) { var rawDocID = '#' + $(this).attr('id') + '-raw'; var indent = $(rawDocID).html().match("^\\n[\\t ]*"); @@ -436,7 +433,7 @@ } else { normalized = $(rawDocID).html(); } - $(this).html(c.makeHtml(normalized)); + $(this).html(c.render(normalized)); $(this).find('code,pre').each(function(i, block) { $(this).html($(this).text()); });