fix mdast find and replace imports

This commit is contained in:
keyan 2023-07-24 20:03:56 -05:00
parent dae9c64e96
commit 041b711c21
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import findAndReplace from 'mdast-util-find-and-replace'
import { findAndReplace } from 'mdast-util-find-and-replace'
const userGroup = '[\\w_]+'
@ -26,7 +26,7 @@ export default function mention (options) {
return false
}
const node = { type: 'text', value: value }
const node = { type: 'text', value }
return {
type: 'link',

View File

@ -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_]+'
@ -26,7 +26,7 @@ export default function mention (options) {
return false
}
const node = { type: 'text', value: value }
const node = { type: 'text', value }
return {
type: 'link',