From 134368e38886f17680b75675b34ad2fc37bd4b90 Mon Sep 17 00:00:00 2001 From: Bob4ever Date: Fri, 11 Aug 2017 09:24:58 +0200 Subject: [PATCH 1/3] Updated dependencies Updated jquery, bootstrap Replaced Pagedown by markdown-it --- xs3p.xsl | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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()); }); From cf823f53dad2cee05c56ab5566475bf7c7655d74 Mon Sep 17 00:00:00 2001 From: Bob4ever Date: Fri, 11 Aug 2017 09:25:57 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd9bd01..eafbebc 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-id library](https://github.com/markdown-it/markdown-it) You can see a nice example result here: From d87016e0cb791d50fa7cbe0a623c26fbafe715f9 Mon Sep 17 00:00:00 2001 From: Bob4ever Date: Fri, 11 Aug 2017 09:26:38 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eafbebc..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 - [markdown-id library](https://github.com/markdown-it/markdown-it) + [markdown-it library](https://github.com/markdown-it/markdown-it) You can see a nice example result here: