@@ -19,11 +19,10 @@ import initServiceWorker from './features/serviceworker.js';
1919import initTableSort from './features/tablesort.js' ;
2020import { createCodeEditor , createMonaco } from './features/codeeditor.js' ;
2121import { initMarkupAnchors } from './markup/anchors.js' ;
22- import initMarkupTasklist from './markup/tasklist.js' ;
2322import { initNotificationsTable , initNotificationCount } from './features/notification.js' ;
2423import { initStopwatch } from './features/stopwatch.js' ;
25- import { renderMarkupContent } from './markup/content.js' ;
2624import { showLineButton } from './code/linebutton.js' ;
25+ import { initMarkupContent , initCommentContent } from './markup/content.js' ;
2726import { stripTags , mqBinarySearch } from './utils.js' ;
2827import { svg , svgs } from './svg.js' ;
2928
@@ -53,7 +52,7 @@ function initCommentPreviewTab($form) {
5352 } , ( data ) => {
5453 const $previewPanel = $form . find ( `.tab[data-tab="${ $tabMenu . data ( 'preview' ) } "]` ) ;
5554 $previewPanel . html ( data ) ;
56- renderMarkupContent ( ) ;
55+ initMarkupContent ( ) ;
5756 } ) ;
5857 } ) ;
5958
@@ -83,7 +82,7 @@ function initEditPreviewTab($form) {
8382 } , ( data ) => {
8483 const $previewPanel = $form . find ( `.tab[data-tab="${ $tabMenu . data ( 'preview' ) } "]` ) ;
8584 $previewPanel . html ( data ) ;
86- renderMarkupContent ( ) ;
85+ initMarkupContent ( ) ;
8786 } ) ;
8887 } ) ;
8988 }
@@ -1109,7 +1108,8 @@ async function initRepository() {
11091108 dz . emit ( 'submit' ) ;
11101109 dz . emit ( 'reload' ) ;
11111110 }
1112- renderMarkupContent ( ) ;
1111+ initMarkupContent ( ) ;
1112+ initCommentContent ( ) ;
11131113 } ) ;
11141114 } ) ;
11151115 } else {
@@ -1482,7 +1482,7 @@ function initWikiForm() {
14821482 wiki : true
14831483 } , ( data ) => {
14841484 preview . innerHTML = `<div class="markup ui segment">${ data } </div>` ;
1485- renderMarkupContent ( ) ;
1485+ initMarkupContent ( ) ;
14861486 } ) ;
14871487 } ;
14881488
@@ -2734,7 +2734,7 @@ $(document).ready(async () => {
27342734 searchRepositories ( ) ;
27352735
27362736 initMarkupAnchors ( ) ;
2737- initMarkupTasklist ( ) ;
2737+ initCommentContent ( ) ;
27382738 initCommentForm ( ) ;
27392739 initInstall ( ) ;
27402740 initArchiveLinks ( ) ;
@@ -2792,7 +2792,7 @@ $(document).ready(async () => {
27922792 initServiceWorker ( ) ,
27932793 initNotificationCount ( ) ,
27942794 initStopwatch ( ) ,
2795- renderMarkupContent ( ) ,
2795+ initMarkupContent ( ) ,
27962796 initGithook ( ) ,
27972797 initImageDiff ( ) ,
27982798 ] ) ;
0 commit comments