Update toggleStarred.ts

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

View file

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