Update toggleStarred.ts

This commit is contained in:
nbats 2025-01-21 22:01:05 -08:00 committed by GitHub
parent 7bd20a81e2
commit d19b69e137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,7 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
if (
!excluded.includes(env.frontmatter.title) &&
contentToken &&
contentToken.content.startsWith(':star:')
contentToken.content.startsWith(':Glowing Star:')
contentToken.content.startsWith(':star:' ':Glowing Star:')
) {
return `<li class="starred">`
}