mirror of
https://github.com/fmhy/edit.git
synced 2026-01-17 21:43:58 +00:00
Update toggleStarred.ts
This commit is contained in:
@@ -24,7 +24,7 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
|
||||
if (
|
||||
!excluded.includes(env.frontmatter.title) &&
|
||||
contentToken &&
|
||||
(contentToken.content.startsWith(':star:') || contentToken.content.startsWith(':star2:')) // Check for both ⭐ and 🌟
|
||||
contentToken.content.startsWith(':star:')
|
||||
) {
|
||||
return `<li class="starred">`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user