refactor: recreate extension exports
This commit is contained in:
5
packages/extension-link/src/index.ts
Normal file
5
packages/extension-link/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Link } from './link'
|
||||
|
||||
export * from './link'
|
||||
|
||||
export default Link
|
||||
@@ -16,7 +16,7 @@ export interface LinkOptions {
|
||||
export const pasteRegex = /https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)(?:[-a-zA-Z0-9@:%._+~#=?!&/]*)/gi
|
||||
export const pasteRegexWithBrackets = /(?:\()https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b(?:[-a-zA-Z0-9@:%._+~#=?!&/()]*)(?:\))/gi
|
||||
|
||||
const Link = Mark.create({
|
||||
export const Link = Mark.create({
|
||||
name: 'link',
|
||||
|
||||
inclusive: false,
|
||||
@@ -106,8 +106,6 @@ const Link = Mark.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default Link
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Link: typeof Link,
|
||||
|
||||
Reference in New Issue
Block a user