mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-06 02:17:49 +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"]
|
* ![](image.jpg "Ipsum") -> [, "", "image.jpg", "Ipsum"]
|
||||||
* ![Lorem](image.jpg "Ipsum") -> [, "Lorem", "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 {
|
export default class Image extends Node {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user