diff --git a/packages/extension-image/src/image.ts b/packages/extension-image/src/image.ts index 3eb5af286..3e2519de5 100644 --- a/packages/extension-image/src/image.ts +++ b/packages/extension-image/src/image.ts @@ -21,7 +21,7 @@ declare module '@tiptap/core' { } } -export const inputRegex = /(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))/ +export const inputRegex = /(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/ export const Image = Node.create({ name: 'image',