Skip to content

Commit 864d162

Browse files
authored
Merge pull request #464 from ujasbhuva/main
feat: Added markdownExtension to allow html and markdown string as initial content
2 parents bf942cd + ead5bf1 commit 864d162

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/web/components/tailwind/extensions.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,17 @@ const mathematics = Mathematics.configure({
148148

149149
const characterCount = CharacterCount.configure();
150150

151+
const markdownExtension = MarkdownExtension.configure({
152+
html: true,
153+
tightLists: true,
154+
tightListClass: 'tight',
155+
bulletListMarker: '-',
156+
linkify: false,
157+
breaks: false,
158+
transformPastedText: false,
159+
transformCopiedText: false,
160+
});
161+
151162
export const defaultExtensions = [
152163
starterKit,
153164
placeholder,
@@ -164,7 +175,7 @@ export const defaultExtensions = [
164175
mathematics,
165176
characterCount,
166177
TiptapUnderline,
167-
MarkdownExtension,
178+
markdownExtension,
168179
HighlightExtension,
169180
TextStyle,
170181
Color,

0 commit comments

Comments
 (0)