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

@@ -17,7 +17,7 @@ export const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/gm
export const underscoreInputRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/gm
export const underscorePasteRegex = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/gm
const Bold = Mark.create({
export const Bold = Mark.create({
name: 'bold',
defaultOptions: <BoldOptions>{
@@ -88,8 +88,6 @@ const Bold = Mark.create({
},
})
export default Bold
declare module '@tiptap/core' {
interface AllExtensions {
Bold: typeof Bold,