@@ -19,11 +19,10 @@ import initServiceWorker from './features/serviceworker.js';
19
19
import initTableSort from './features/tablesort.js' ;
20
20
import { createCodeEditor , createMonaco } from './features/codeeditor.js' ;
21
21
import { initMarkupAnchors } from './markup/anchors.js' ;
22
- import initMarkupTasklist from './markup/tasklist.js' ;
23
22
import { initNotificationsTable , initNotificationCount } from './features/notification.js' ;
24
23
import { initStopwatch } from './features/stopwatch.js' ;
25
- import { renderMarkupContent } from './markup/content.js' ;
26
24
import { showLineButton } from './code/linebutton.js' ;
25
+ import { initMarkupContent , initCommentContent } from './markup/content.js' ;
27
26
import { stripTags , mqBinarySearch } from './utils.js' ;
28
27
import { svg , svgs } from './svg.js' ;
29
28
@@ -53,7 +52,7 @@ function initCommentPreviewTab($form) {
53
52
} , ( data ) => {
54
53
const $previewPanel = $form . find ( `.tab[data-tab="${ $tabMenu . data ( 'preview' ) } "]` ) ;
55
54
$previewPanel . html ( data ) ;
56
- renderMarkupContent ( ) ;
55
+ initMarkupContent ( ) ;
57
56
} ) ;
58
57
} ) ;
59
58
@@ -83,7 +82,7 @@ function initEditPreviewTab($form) {
83
82
} , ( data ) => {
84
83
const $previewPanel = $form . find ( `.tab[data-tab="${ $tabMenu . data ( 'preview' ) } "]` ) ;
85
84
$previewPanel . html ( data ) ;
86
- renderMarkupContent ( ) ;
85
+ initMarkupContent ( ) ;
87
86
} ) ;
88
87
} ) ;
89
88
}
@@ -1109,7 +1108,8 @@ async function initRepository() {
1109
1108
dz . emit ( 'submit' ) ;
1110
1109
dz . emit ( 'reload' ) ;
1111
1110
}
1112
- renderMarkupContent ( ) ;
1111
+ initMarkupContent ( ) ;
1112
+ initCommentContent ( ) ;
1113
1113
} ) ;
1114
1114
} ) ;
1115
1115
} else {
@@ -1482,7 +1482,7 @@ function initWikiForm() {
1482
1482
wiki : true
1483
1483
} , ( data ) => {
1484
1484
preview . innerHTML = `<div class="markup ui segment">${ data } </div>` ;
1485
- renderMarkupContent ( ) ;
1485
+ initMarkupContent ( ) ;
1486
1486
} ) ;
1487
1487
} ;
1488
1488
@@ -2734,7 +2734,7 @@ $(document).ready(async () => {
2734
2734
searchRepositories ( ) ;
2735
2735
2736
2736
initMarkupAnchors ( ) ;
2737
- initMarkupTasklist ( ) ;
2737
+ initCommentContent ( ) ;
2738
2738
initCommentForm ( ) ;
2739
2739
initInstall ( ) ;
2740
2740
initArchiveLinks ( ) ;
@@ -2792,7 +2792,7 @@ $(document).ready(async () => {
2792
2792
initServiceWorker ( ) ,
2793
2793
initNotificationCount ( ) ,
2794
2794
initStopwatch ( ) ,
2795
- renderMarkupContent ( ) ,
2795
+ initMarkupContent ( ) ,
2796
2796
initGithook ( ) ,
2797
2797
initImageDiff ( ) ,
2798
2798
] ) ;
0 commit comments