Skip to content

Commit 942b07b

Browse files
ahornaceVladimir Kotal
authored andcommitted
Update showdown to 1.9.1
1 parent bd62c22 commit 942b07b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

opengrok-web/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
120120
<artifactId>jquery</artifactId>
121121
<version>3.5.1</version>
122122
</dependency>
123+
<dependency>
124+
<groupId>org.webjars.npm</groupId>
125+
<artifactId>showdown</artifactId>
126+
<version>1.9.1</version>
127+
</dependency>
123128
<dependency>
124129
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
125130
<artifactId>jersey-test-framework-provider-grizzly2</artifactId>

opengrok-web/src/main/java/org/opengrok/web/Scripts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public String toHtml() {
114114
putjs("jquery-tablesorter", "js/jquery-tablesorter-2.31.3", 12);
115115
putjs("tablesorter-parsers", "js/tablesorter-parsers-0.0.2", 13, true);
116116
putjs("searchable-option-list", "js/searchable-option-list-2.0.14", 14);
117-
putjs("utils", "js/utils-0.0.37", 15, true);
117+
putjs("utils", "js/utils-0.0.38", 15, true);
118118
putjs("repos", "js/repos-0.0.2", 20, true);
119119
putjs("diff", "js/diff-0.0.4", 20, true);
120120
putjs("jquery-caret", "js/jquery.caret-1.5.2", 25);

opengrok-web/src/main/webapp/js/showdown-1.8.4.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

opengrok-web/src/main/webapp/js/utils-0.0.37.js renamed to opengrok-web/src/main/webapp/js/utils-0.0.38.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ function init_markdown_converter() {
14831483
$('[data-markdown]').each(function () {
14841484
var $that = $(this);
14851485
$.script.loadScript('js/xss-0.2.16.min.js').done(function () {
1486-
$.script.loadScript('js/showdown-1.8.4.min.js').done(function () {
1486+
$.script.loadScript('webjars/showdown/1.9.1/dist/showdown.min.js').done(function () {
14871487
$that.find('.markdown-content[data-markdown-download]').each(function () {
14881488
var $dataMarkdownDownloadEl = $(this);
14891489
if (converter === null) {

0 commit comments

Comments
 (0)