File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 GlobalDragHandle ,
88 HighlightExtension ,
99 HorizontalRule ,
10- MarkdownExtension ,
1110 Mathematics ,
1211 Placeholder ,
1312 StarterKit ,
@@ -22,6 +21,7 @@ import {
2221 UploadImagesPlugin ,
2322 Youtube ,
2423} from "novel" ;
24+ import { Markdown } from "tiptap-markdown" ;
2525
2626import { cx } from "class-variance-authority" ;
2727import { common , createLowlight } from "lowlight" ;
@@ -148,7 +148,7 @@ const mathematics = Mathematics.configure({
148148
149149const characterCount = CharacterCount . configure ( ) ;
150150
151- const markdownExtension = MarkdownExtension . configure ( {
151+ const markdownExtension = Markdown . configure ( {
152152 html : true ,
153153 tightLists : true ,
154154 tightListClass : "tight" ,
Original file line number Diff line number Diff line change 4343 "tailwind-merge" : " ^2.2.1" ,
4444 "tailwindcss-animate" : " ^1.0.7" ,
4545 "tippy.js" : " ^6.3.7" ,
46+ "tiptap-markdown" : " ^0.8.10" ,
4647 "ts-pattern" : " ^5.0.8" ,
4748 "typescript" : " ^5.4.2" ,
4849 "use-debounce" : " ^10.0.0"
Original file line number Diff line number Diff line change 5050 "katex" : " ^0.16.20" ,
5151 "tippy.js" : " ^6.3.7" ,
5252 "tiptap-extension-global-drag-handle" : " ^0.1.16" ,
53- "tiptap-markdown" : " ^0.8.10" ,
5453 "tunnel-rat" : " ^0.1.2"
5554 },
5655 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ import { TaskList } from "@tiptap/extension-task-list";
1010import TextStyle from "@tiptap/extension-text-style" ;
1111import TiptapUnderline from "@tiptap/extension-underline" ;
1212import StarterKit from "@tiptap/starter-kit" ;
13- import { Markdown } from "tiptap-markdown" ;
1413import CustomKeymap from "./custom-keymap" ;
1514import { ImageResizer } from "./image-resizer" ;
16- import { Twitter } from "./twitter" ;
1715import { Mathematics } from "./mathematics" ;
16+ import { Twitter } from "./twitter" ;
1817import UpdatedImage from "./updated-image" ;
1918
2019import CharacterCount from "@tiptap/extension-character-count" ;
@@ -36,11 +35,6 @@ const HighlightExtension = Highlight.configure({
3635 multicolor : true ,
3736} ) ;
3837
39- const MarkdownExtension = Markdown . configure ( {
40- html : false ,
41- transformCopiedText : true ,
42- } ) ;
43-
4438const Horizontal = HorizontalRule . extend ( {
4539 addInputRules ( ) {
4640 return [
@@ -73,7 +67,6 @@ export {
7367 TaskList ,
7468 TiptapImage ,
7569 TiptapUnderline ,
76- MarkdownExtension ,
7770 TextStyle ,
7871 Color ,
7972 HighlightExtension ,
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ export {
2929 TaskList ,
3030 TiptapImage ,
3131 TiptapUnderline ,
32- MarkdownExtension ,
3332 TextStyle ,
3433 Color ,
3534 HighlightExtension ,
You can’t perform that action at this time.
0 commit comments