mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Update Image.js
This commit is contained in:
parent
3a0be198db
commit
fd990286e7
@ -9,7 +9,7 @@ import { nodeInputRule } from 'tiptap-commands'
|
||||
* ![](image.jpg "Ipsum") -> [, "", "image.jpg", "Ipsum"]
|
||||
* ![Lorem](image.jpg "Ipsum") -> [, "Lorem", "image.jpg", "Ipsum"]
|
||||
*/
|
||||
const IMAGE_INPUT_REGEX = /!\[(.+|:?)\]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
|
||||
const IMAGE_INPUT_REGEX = /!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\)/
|
||||
|
||||
export default class Image extends Node {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user