mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
fix(theme): toggle starred on new emojis
Fixes WEB-10
This commit is contained in:
parent
0e69461b59
commit
e6d663f128
2 changed files with 6 additions and 2 deletions
|
|
@ -11,6 +11,9 @@ export const defs = {
|
|||
|
||||
export function emojiRender(md: MarkdownRenderer) {
|
||||
md.renderer.rules.emoji = (tokens, idx) => {
|
||||
if (tokens[idx].markup.startsWith("star")) {
|
||||
return `<span class="i-twemoji-${tokens[idx].markup} starred"></span>`;
|
||||
}
|
||||
return `<span class="i-twemoji-${tokens[idx].markup}"></span>`;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue