File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,18 @@ export default function MarkdownRenderer({
100
100
} ) ;
101
101
} ;
102
102
103
+ // HTML 주석 제거 함수 추가
104
+ const removeHtmlComments = ( text : string ) => {
105
+ return text . replace ( / < ! - - [ \s \S ] * ?- - > / g, '' ) ;
106
+ } ;
107
+
103
108
// 처리 순서 변경: 위키링크 처리 전에 콜아웃 처리
104
109
const processedContent = processUncycloLinks ( content ) ;
105
110
const fullProcessedContent = processContentWithCallouts ( processedContent ) ;
111
+ // HTML 주석 제거 처리 추가
112
+ const withoutComments = removeHtmlComments ( fullProcessedContent ) ;
106
113
// 최종 처리된 콘텐츠
107
- const finalProcessedContent = fullProcessedContent ;
114
+ const finalProcessedContent = withoutComments ;
108
115
109
116
const components = {
110
117
h1 : ( { children } : { children ?: React . ReactNode } ) => (
You can’t perform that action at this time.
0 commit comments