fix: icons
This commit is contained in:
@@ -35,7 +35,7 @@ const marked = new Marked()
|
||||
// :[blah] becomes <i class="icon icon-blah"></i>
|
||||
renderer(token) {
|
||||
if (!token.meta.name) {
|
||||
const style = globalIconPrefix ? `style="--icon-src: url('${globalIconPrefix}${token.text}.png')"` : '';
|
||||
const style = globalIconPrefix ? `style="--icon-src: url('${globalIconPrefix}/${token.text}.png')"` : '';
|
||||
return `<icon ${style} class="icon-${token.text}"></icon>`;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user