We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f608190 commit b8969c0Copy full SHA for b8969c0
1 file changed
src/components/common/TextEditor/utils.ts
@@ -2,14 +2,6 @@ import { marked } from "marked";
2
import TurndownService from "turndown";
3
import DOMPurify from "dompurify";
4
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
-
13
// Configure Turndown for consistent markdown output
14
const turndownService = new TurndownService();
15
@@ -33,7 +25,7 @@ export const markdownToHtml = (markdown: string): string => {
33
25
}
34
26
35
27
try {
36
- const html = marked.parse(markdown, markedOptions) as string;
28
+ const html = marked.parse(markdown) as string;
37
29
38
30
// Sanitize HTML with DOMPurify
39
31
const sanitizedHtml = DOMPurify.sanitize(html as string);
0 commit comments