mirror of
https://github.com/fmhy/edit.git
synced 2025-07-31 00:02:17 +10:00
Update toggleStarred.ts
This commit is contained in:
parent
42c0d19b20
commit
a5db88059f
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
|
||||||
if (
|
if (
|
||||||
!excluded.includes(env.frontmatter.title) &&
|
!excluded.includes(env.frontmatter.title) &&
|
||||||
contentToken &&
|
contentToken &&
|
||||||
contentToken.content.startsWith(':star:')
|
contentToken.content.includes(':star:') || // Check if it contains ⭐
|
||||||
contentToken.content.includes(':star2:')
|
contentToken.content.includes(':star2:') // Check if it contains 🌟
|
||||||
) {
|
) {
|
||||||
return `<li class="starred">`
|
return `<li class="starred">`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue