refactor: recreate extension exports

This commit is contained in:
Florian Wiech
2020-12-07 21:32:50 +01:00
parent 11de3a287f
commit 4142637921
62 changed files with 186 additions and 93 deletions

View File

@@ -0,0 +1,5 @@
import { Italic } from './italic'
export * from './italic'
export default Italic

View File

@@ -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,