Skip to content

Commit 046743c

Browse files
Enabled multiple options to make markdown consistent with github
Tables, simple line breaks, strikethroug, tasklists, simplifiedAutoLink, pareImgDimensions, github @ mentions
1 parent 8bd9584 commit 046743c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

opengrok-web/src/main/webapp/js/utils-0.0.24.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,13 @@ function init_markdown_converter() {
14981498
var $dataMarkdownDownloadEl = $(this)
14991499
if (converter === null) {
15001500
converter = new showdown.Converter();
1501+
converter.setOption('tables', true);
1502+
converter.setOption('simpleLineBreaks', true);
1503+
converter.setOption('strikethrough', true);
1504+
converter.setOption('tasklists', true);
1505+
converter.setOption('simplifiedAutoLink', true);
1506+
converter.setOption('parseImgDimension', true);
1507+
converter.setOption('ghMentionsLink', true)
15011508
}
15021509

15031510
$.ajax({

0 commit comments

Comments
 (0)