mirror of
https://github.com/fmhy/edit.git
synced 2026-01-28 10:51:02 +00:00
Update toggleStarred.ts
This commit is contained in:
@@ -30,7 +30,7 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!excluded.includes(env.frontmatter.title) &&
|
!excluded.includes(env.frontmatter.title) &&
|
||||||
(content.includes(':star:') || content.includes('🌟')) // Directly check for emojis
|
(content.includes(':star:') || content.includes(':glowing-star:')) // Directly check for emojis
|
||||||
) {
|
) {
|
||||||
return `<li class="starred">`
|
return `<li class="starred">`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user