mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +10:00
chore(Feedback): remove bug
type
Nobody was using the type as intended, so this is part 1 of me phasing it out.
This commit is contained in:
parent
59aa4be68c
commit
e3685783c8
37 changed files with 2098 additions and 1991 deletions
|
@ -13,6 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import type { MarkdownRenderer } from 'vitepress'
|
||||
|
||||
const excluded = ['Beginners Guide']
|
||||
|
@ -25,12 +26,9 @@ export function toggleStarredPlugin(md: MarkdownRenderer) {
|
|||
if (contentToken) {
|
||||
const content = contentToken.content
|
||||
|
||||
// Log the content for debugging purposes
|
||||
console.log('Content Token:', content)
|
||||
|
||||
if (
|
||||
!excluded.includes(env.frontmatter.title) &&
|
||||
(content.includes(':star:') || content.includes(':glowing-star:')) // Directly check for emojis
|
||||
(content.includes(':star:') || content.includes(':glowing-star:'))
|
||||
) {
|
||||
return `<li class="starred">`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue