Skip to content

Commit

Permalink
feat: remove tiptap-markdown from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdoro committed Jan 18, 2025
1 parent fa95098 commit 0e8a8a8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/tailwind/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
GlobalDragHandle,
HighlightExtension,
HorizontalRule,
MarkdownExtension,
Mathematics,
Placeholder,
StarterKit,
Expand All @@ -22,6 +21,7 @@ import {
UploadImagesPlugin,
Youtube,
} from "novel";
import { Markdown } from "tiptap-markdown";

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

const characterCount = CharacterCount.configure();

const markdownExtension = MarkdownExtension.configure({
const markdownExtension = Markdown.configure({
html: true,
tightLists: true,
tightListClass: "tight",
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"tippy.js": "^6.3.7",
"tiptap-markdown": "^0.8.10",
"ts-pattern": "^5.0.8",
"typescript": "^5.4.2",
"use-debounce": "^10.0.0"
Expand Down
1 change: 0 additions & 1 deletion packages/headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"katex": "^0.16.20",
"tippy.js": "^6.3.7",
"tiptap-extension-global-drag-handle": "^0.1.16",
"tiptap-markdown": "^0.8.10",
"tunnel-rat": "^0.1.2"
},
"devDependencies": {
Expand Down
9 changes: 1 addition & 8 deletions packages/headless/src/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import { TaskList } from "@tiptap/extension-task-list";
import TextStyle from "@tiptap/extension-text-style";
import TiptapUnderline from "@tiptap/extension-underline";
import StarterKit from "@tiptap/starter-kit";
import { Markdown } from "tiptap-markdown";
import CustomKeymap from "./custom-keymap";
import { ImageResizer } from "./image-resizer";
import { Twitter } from "./twitter";
import { Mathematics } from "./mathematics";
import { Twitter } from "./twitter";
import UpdatedImage from "./updated-image";

import CharacterCount from "@tiptap/extension-character-count";
Expand All @@ -36,11 +35,6 @@ const HighlightExtension = Highlight.configure({
multicolor: true,
});

const MarkdownExtension = Markdown.configure({
html: false,
transformCopiedText: true,
});

const Horizontal = HorizontalRule.extend({
addInputRules() {
return [
Expand Down Expand Up @@ -73,7 +67,6 @@ export {
TaskList,
TiptapImage,
TiptapUnderline,
MarkdownExtension,
TextStyle,
Color,
HighlightExtension,
Expand Down
1 change: 0 additions & 1 deletion packages/headless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export {
TaskList,
TiptapImage,
TiptapUnderline,
MarkdownExtension,
TextStyle,
Color,
HighlightExtension,
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e8a8a8

Please sign in to comment.