Update toggleStarred.ts

This commit is contained in:
nbats 2025-01-21 22:19:28 -08:00 committed by GitHub
parent 21c73850f5
commit 5d770e2f96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
if ( if (
!excluded.includes(env.frontmatter.title) && !excluded.includes(env.frontmatter.title) &&
contentToken && contentToken &&
(contentToken.content.startsWith(':star:') || contentToken.content.startsWith(':star2:')) // Check for both ⭐ and 🌟 contentToken.content.startsWith(':star:')
) { ) {
return `<li class="starred">` return `<li class="starred">`
} }