feat: add support for fa-kit icons

This commit is contained in:
jakobskrym 2024-03-30 12:03:55 +01:00
parent 8e95c4db55
commit 4daef2591d
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ export const addVertices = async function (vert, g, svgId, root, _doc, diagObj)
const node = {
label: await renderKatex(
vertexText.replace(
/fa[blrs]?:fa-[\w-]+/g, // cspell:disable-line
/fa[bklrs]?:fa-[\w-]+/g, // cspell:disable-line
(s) => `<i class='${s.replace(':', ' ')}'></i>`
),
getConfig()
@ -244,7 +244,7 @@ export const addEdges = async function (edges, g, diagObj) {
edgeData.labelStyle
}">${await renderKatex(
edge.text.replace(
/fa[blrs]?:fa-[\w-]+/g, // cspell:disable-line
/fa[bklrs]?:fa-[\w-]+/g, // cspell:disable-line
(s) => `<i class='${s.replace(':', ' ')}'></i>`
),
getConfig()