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:
taskylizard 2025-03-11 23:38:38 +00:00
parent 59aa4be68c
commit e3685783c8
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
37 changed files with 2098 additions and 1991 deletions

View file

@ -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">`
}