refactor: recreate extension exports
This commit is contained in:
@@ -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,
|
||||
|
||||
5
packages/extension-bold/src/index.ts
Normal file
5
packages/extension-bold/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Bold } from './bold'
|
||||
|
||||
export * from './bold'
|
||||
|
||||
export default Bold
|
||||
Reference in New Issue
Block a user