File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
src/components/common/TextEditor Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,6 @@ import { marked } from "marked";
22import TurndownService from "turndown" ;
33import DOMPurify from "dompurify" ;
44
5- // Configure marked for clean HTML output compatible with Tiptap
6- const markedOptions = {
7- breaks : true ,
8- gfm : true ,
9- headerIds : false ,
10- mangle : false ,
11- } ;
12-
135// Configure Turndown for consistent markdown output
146const turndownService = new TurndownService ( ) ;
157
@@ -33,7 +25,7 @@ export const markdownToHtml = (markdown: string): string => {
3325 }
3426
3527 try {
36- const html = marked . parse ( markdown , markedOptions ) as string ;
28+ const html = marked . parse ( markdown ) as string ;
3729
3830 // Sanitize HTML with DOMPurify
3931 const sanitizedHtml = DOMPurify . sanitize ( html as string ) ;
You can’t perform that action at this time.
0 commit comments