fix: mini icons

This commit is contained in:
2026-03-25 17:36:19 +08:00
parent 64ac6c4516
commit 3cd8cc54b7
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ const marked = new Marked()
renderer(token) {
if (!token.meta.name) {
const style = globalIconPrefix ? `style="--icon-src: url('${globalIconPrefix}/${token.text}.png')"` : '';
return `<icon ${style} class="icon-${token.text}"></icon>`;
return `<icon ${style} class="icon-${token.text} ${token.attrs?.class || ""}"></icon>`;
}
return false;
}