mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
This commit is contained in:
parent
c96a062027
commit
ad18ec7519
1 changed files with 3 additions and 3 deletions
|
|
@ -26,10 +26,10 @@ export const unicode2Emoji = (unicode: string, className = "", needSpan = false,
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
let emoji = "";
|
let emoji = "";
|
||||||
if (unicode.indexOf(".") > -1) {
|
if (unicode.startsWith("api/icon/getDynamicIcon")) {
|
||||||
emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/emojis/${unicode}"/>`;
|
|
||||||
} else if (unicode.startsWith("api/icon/getDynamicIcon")) {
|
|
||||||
emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/${unicode}"/>`;
|
emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/${unicode}"/>`;
|
||||||
|
} else if (unicode.indexOf(".") > -1) {
|
||||||
|
emoji = `<img class="${className}" ${lazy ? "data-" : ""}src="/emojis/${unicode}"/>`;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
unicode.split("-").forEach(item => {
|
unicode.split("-").forEach(item => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue