diff --git a/.vitepress/markdown/emoji.ts b/.vitepress/markdown/emoji.ts index 1e0937fff..b1009b1b4 100644 --- a/.vitepress/markdown/emoji.ts +++ b/.vitepress/markdown/emoji.ts @@ -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 ``; + } return ``; }; } diff --git a/.vitepress/markdown/toggleStarred.ts b/.vitepress/markdown/toggleStarred.ts index 37024e70d..1ec258d39 100644 --- a/.vitepress/markdown/toggleStarred.ts +++ b/.vitepress/markdown/toggleStarred.ts @@ -8,10 +8,11 @@ export function toggleStarredPlugin(md: MarkdownRenderer) { if ( !excluded.includes(env.frontmatter.title) && contentToken && - contentToken.content.startsWith("⭐") + contentToken.content.startsWith(":star:") ) { return `