From ead5bf16a027e96e7f3abb1550e6b19252f10e1b Mon Sep 17 00:00:00 2001 From: ujasbhuva Date: Wed, 20 Nov 2024 14:44:24 -0500 Subject: [PATCH] Added markdown exrension to allow html and md string as initial content --- apps/web/components/tailwind/extensions.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web/components/tailwind/extensions.ts b/apps/web/components/tailwind/extensions.ts index 7ed5c5a4..715af9f5 100644 --- a/apps/web/components/tailwind/extensions.ts +++ b/apps/web/components/tailwind/extensions.ts @@ -148,6 +148,17 @@ const mathematics = Mathematics.configure({ const characterCount = CharacterCount.configure(); +const markdownExtension = MarkdownExtension.configure({ + html: true, + tightLists: true, + tightListClass: 'tight', + bulletListMarker: '-', + linkify: false, + breaks: false, + transformPastedText: false, + transformCopiedText: false, +}); + export const defaultExtensions = [ starterKit, placeholder, @@ -164,7 +175,7 @@ export const defaultExtensions = [ mathematics, characterCount, TiptapUnderline, - MarkdownExtension, + markdownExtension, HighlightExtension, TextStyle, Color,