Update toggleStarred.ts

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

View file

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