Update toggleStarred.ts

This commit is contained in:
nbats 2025-01-22 05:18:43 -08:00 committed by GitHub
parent f61b036830
commit 5345c1c193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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">`
} }