refactor: recreate extension exports
This commit is contained in:
5
packages/extension-typography/src/index.ts
Normal file
5
packages/extension-typography/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Typography } from './typography'
|
||||
|
||||
export * from './typography'
|
||||
|
||||
export default Typography
|
||||
@@ -20,7 +20,7 @@ export const laquo = new InputRule(/<<$/, '«')
|
||||
export const raquo = new InputRule(/>>$/, '»')
|
||||
export const multiplication = new InputRule(/\d+\s?([*x])\s?\d+$/, '×')
|
||||
|
||||
const Typography = Extension.create({
|
||||
export const Typography = Extension.create({
|
||||
name: 'typography',
|
||||
|
||||
addInputRules() {
|
||||
@@ -45,8 +45,6 @@ const Typography = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default Typography
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Typography: typeof Typography,
|
||||
|
||||
Reference in New Issue
Block a user