Skip to content

Commit b8969c0

Browse files
committed
chore: remove marked options
1 parent f608190 commit b8969c0

File tree

1 file changed

+1
-9
lines changed
  • src/components/common/TextEditor

1 file changed

+1
-9
lines changed

src/components/common/TextEditor/utils.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ import { marked } from "marked";
22
import TurndownService from "turndown";
33
import 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
146
const 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);

0 commit comments

Comments
 (0)