fix: use correct capture group index for tabler icon name
This commit is contained in:
@@ -4,7 +4,7 @@ import { markdownItPlugin } from "./markdown-it-regexp"
|
|||||||
export const markdownItTablerIcons = markdownItPlugin(
|
export const markdownItTablerIcons = markdownItPlugin(
|
||||||
/:([\w-]+):/,
|
/:([\w-]+):/,
|
||||||
(match) => {
|
(match) => {
|
||||||
const name = match[0][1]
|
const name = match[1]
|
||||||
return `<i class="ti ti-${name}"></i>`
|
return `<i class="ti ti-${name}"></i>`
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user