fix mdast find and replace imports
This commit is contained in:
parent
dae9c64e96
commit
041b711c21
|
@ -1,4 +1,4 @@
|
||||||
import findAndReplace from 'mdast-util-find-and-replace'
|
import { findAndReplace } from 'mdast-util-find-and-replace'
|
||||||
|
|
||||||
const userGroup = '[\\w_]+'
|
const userGroup = '[\\w_]+'
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ export default function mention (options) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
const node = { type: 'text', value: value }
|
const node = { type: 'text', value }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import findAndReplace from 'mdast-util-find-and-replace'
|
import { findAndReplace } from 'mdast-util-find-and-replace'
|
||||||
|
|
||||||
const subGroup = '[A-Za-z][\\w_]+'
|
const subGroup = '[A-Za-z][\\w_]+'
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ export default function mention (options) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
const node = { type: 'text', value: value }
|
const node = { type: 'text', value }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'link',
|
type: 'link',
|
||||||
|
|
Loading…
Reference in New Issue