Skip to content

Commit 7c01f60

Browse files
authored
Enable literalMidWordUnderscores option in Showdown (#3725)
* Enable literalMidWordUnderscores option in Showdown * update version * Complete updating a version
1 parent b7ca254 commit 7c01f60

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

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
putFromWebJar("jquery-tablesorter", "jquery.tablesorter.min.js", 12);
115115
putjs("tablesorter-parsers", "js/tablesorter-parsers-0.0.3", 13, true);
116116
putjs("searchable-option-list", "js/searchable-option-list-2.0.15", 14, true);
117-
putjs("utils", "js/utils-0.0.43", 15, true);
117+
putjs("utils", "js/utils-0.0.44", 15, true);
118118
putjs("repos", "js/repos-0.0.3", 20, true);
119119
putjs("diff", "js/diff-0.0.5", 20, true);
120120
putjs("jquery-caret", "js/jquery.caret-1.5.2", 25);

opengrok-web/src/main/webapp/js/utils-0.0.43.js renamed to opengrok-web/src/main/webapp/js/utils-0.0.44.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525

2626
/**
2727
* Spaces plugin.
28-
*
28+
*
2929
* Inserts a dummy space between line number and the text so that on copy-paste
3030
* the white space is preserved.
31-
*
31+
*
3232
* Internally listens on scroll events and autofills the spaces only for the visible
3333
* elements.
34-
*
34+
*
3535
* IMPORTANT: This plugin is strictly dependent on ascending order of lines
3636
* and on their attribute "name". It performs a binary search which boosts performance
3737
* of this plugin for really long files.
38-
*
38+
*
3939
* @author Krystof Tulinger
4040
*/
4141
(function (w, $) {
@@ -277,7 +277,7 @@
277277
return true;
278278
});
279279
},
280-
280+
281281
getHashParts: function (hash) {
282282
if (!hash || hash === "") {
283283
return hash;
@@ -369,7 +369,7 @@
369369
}
370370
}
371371
}; // inner
372-
372+
373373
this.init = function (options) {
374374
if (inner.initialized) {
375375
return this;
@@ -766,7 +766,7 @@
766766

767767
/**
768768
* Intelligence window plugin.
769-
*
769+
*
770770
* Reworked to use Jquery in 2016
771771
*/
772772
(function (browserWindow, document, $, $window) {
@@ -1044,7 +1044,7 @@
10441044
console.log("The messagesWindow plugin requires $.window plugin");
10451045
return;
10461046
}
1047-
1047+
10481048
const messagesWindow = function () {
10491049
this.init = function (options, context) {
10501050
$.messagesWindow = $window.create($.extend({
@@ -1153,7 +1153,7 @@
11531153
return $toReturn;
11541154
};
11551155
});
1156-
1156+
11571157
$('.scopes-toggle').click(function () {
11581158
$window.toggle();
11591159
return false;
@@ -1484,6 +1484,7 @@ function init_markdown_converter() {
14841484
converter.setOption('tasklists', true);
14851485
converter.setOption('simplifiedAutoLink', true);
14861486
converter.setOption('parseImgDimension', true);
1487+
converter.setOption('literalMidWordUnderscores', true);
14871488
}
14881489

14891490
$.ajax({

0 commit comments

Comments
 (0)