Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ToC icons #63

Open
1 task
Ast3risk-ops opened this issue Dec 4, 2024 · 3 comments
Open
1 task

feat: ToC icons #63

Ast3risk-ops opened this issue Dec 4, 2024 · 3 comments
Labels
✨ feature New feature or request 📍 upstream

Comments

@Ast3risk-ops
Copy link
Contributor

Ast3risk-ops commented Dec 4, 2024

Describe the feature

If I add an icon component before a header:

image

The icon could also show up in the table of contents.

Additional information

  • Would you be willing to help implement this feature?
@Ast3risk-ops Ast3risk-ops added the ✨ feature New feature or request label Dec 4, 2024
@ZTL-UwU
Copy link
Owner

ZTL-UwU commented Dec 4, 2024

Thanks for the suggestion!

Unfortunatly, there is currently no way to do this. Nuxt content ignores everything that is not text in the headers when generating TOC. An alternative would be to use emojis instead.

p.s. there is an issue in Nuxt Content about this: nuxt/content#2842

@Ast3risk-ops
Copy link
Contributor Author

Ast3risk-ops commented Dec 4, 2024

Thanks for the suggestion!

Unfortunatly, there is currently no way to do this. Nuxt content ignores everything that is not text in the headers when generating TOC. An alternative would be to use emojis instead.

p.s. there is an issue in Nuxt Content about this: nuxt/content#2842

Ah, damn ☹️

Would have been nice. Emoji are extremely limited as an icon set (plus they look different for everyone) and don't fit the shadcn design as well as Lucide does.

@Ast3risk-ops
Copy link
Contributor Author

Ast3risk-ops commented Dec 6, 2024

Should probably mark this with the upstream label @ZTL-UwU

I'm keeping this issue open until there's a definitive response from Nuxt on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request 📍 upstream
Projects
None yet
Development

No branches or pull requests

2 participants