Skip to content

Commit

Permalink
Update toggleStarred.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nbats authored Jan 22, 2025
1 parent 42c0d19 commit a5db880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/markdown/toggleStarred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
if (
!excluded.includes(env.frontmatter.title) &&
contentToken &&
contentToken.content.startsWith(':star:')
contentToken.content.includes(':star2:')
contentToken.content.includes(':star:') || // Check if it contains ⭐
contentToken.content.includes(':star2:') // Check if it contains 🌟
) {
return `<li class="starred">`
}
Expand Down

0 comments on commit a5db880

Please sign in to comment.