diff --git a/package.json b/package.json index d206143ce..1da6621cf 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build": "turbo run build", "build:pm": "turbo run build --filter=@tiptap/pm", "build:demos": "npm run build:demos --workspace demos", - "serve": "npm run build:demos && npm --prefix ./demos run preview", + "serve": "npm run build:demos && npx http-server ./demos/dist -p 3000", "build:ci": "turbo run build", "publish": "npm run build && npm run changeset publish", "clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist", diff --git a/packages/extension-subscript/src/subscript.ts b/packages/extension-subscript/src/subscript.ts index d42f83f56..2719f1d81 100644 --- a/packages/extension-subscript/src/subscript.ts +++ b/packages/extension-subscript/src/subscript.ts @@ -1,4 +1,5 @@ import { Mark, mergeAttributes } from '@tiptap/core' +import type { StyleParseRule } from '@tiptap/pm/model' export interface SubscriptExtensionOptions { /** @@ -60,7 +61,7 @@ export const Subscript = Mark.create({ // If it falls through we’ll match, and this mark will be applied. return null }, - }, + } as StyleParseRule, ] }, diff --git a/packages/extension-superscript/src/superscript.ts b/packages/extension-superscript/src/superscript.ts index 9fce9cab2..77fdd50c5 100644 --- a/packages/extension-superscript/src/superscript.ts +++ b/packages/extension-superscript/src/superscript.ts @@ -1,4 +1,5 @@ import { Mark, mergeAttributes } from '@tiptap/core' +import type { StyleParseRule } from '@tiptap/pm/model' export interface SuperscriptExtensionOptions { /** @@ -60,7 +61,7 @@ export const Superscript = Mark.create({ // If it falls through we’ll match, and this mark will be applied. return null }, - }, + } as StyleParseRule, ] },