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 { Link } from './link'
export * from './link'
export default Link

View File

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