refactor: recreate extension exports
This commit is contained in:
5
packages/extension-italic/src/index.ts
Normal file
5
packages/extension-italic/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Italic } from './italic'
|
||||
|
||||
export * from './italic'
|
||||
|
||||
export default Italic
|
||||
@@ -17,7 +17,7 @@ export const starPasteRegex = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/gm
|
||||
export const underscoreInputRegex = /(?:^|\s)((?:_)((?:[^_]+))(?:_))$/gm
|
||||
export const underscorePasteRegex = /(?:^|\s)((?:_)((?:[^_]+))(?:_))/gm
|
||||
|
||||
const Italic = Mark.create({
|
||||
export const Italic = Mark.create({
|
||||
name: 'italic',
|
||||
|
||||
defaultOptions: <ItalicOptions>{
|
||||
@@ -87,8 +87,6 @@ const Italic = Mark.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default Italic
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Italic: typeof Italic,
|
||||
|
||||
Reference in New Issue
Block a user