Skip to content

Commit 0e8a8a8

Browse files
committed
feat: remove tiptap-markdown from bundle
1 parent fa95098 commit 0e8a8a8

6 files changed

Lines changed: 7 additions & 15 deletions

File tree

apps/web/components/tailwind/extensions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
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

2626
import { cx } from "class-variance-authority";
2727
import { common, createLowlight } from "lowlight";
@@ -148,7 +148,7 @@ const mathematics = Mathematics.configure({
148148

149149
const characterCount = CharacterCount.configure();
150150

151-
const markdownExtension = MarkdownExtension.configure({
151+
const markdownExtension = Markdown.configure({
152152
html: true,
153153
tightLists: true,
154154
tightListClass: "tight",

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
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"

packages/headless/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
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": {

packages/headless/src/extensions/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ import { TaskList } from "@tiptap/extension-task-list";
1010
import TextStyle from "@tiptap/extension-text-style";
1111
import TiptapUnderline from "@tiptap/extension-underline";
1212
import StarterKit from "@tiptap/starter-kit";
13-
import { Markdown } from "tiptap-markdown";
1413
import CustomKeymap from "./custom-keymap";
1514
import { ImageResizer } from "./image-resizer";
16-
import { Twitter } from "./twitter";
1715
import { Mathematics } from "./mathematics";
16+
import { Twitter } from "./twitter";
1817
import UpdatedImage from "./updated-image";
1918

2019
import 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-
4438
const 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,

packages/headless/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export {
2929
TaskList,
3030
TiptapImage,
3131
TiptapUnderline,
32-
MarkdownExtension,
3332
TextStyle,
3433
Color,
3534
HighlightExtension,

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)