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