Closed Ansub closed 5 months ago
I'll look into it
Hey @Ansub , I was able to fix the component using shiki but the mdx part of the code display broke as its running the older version (v 0.14.0) and the component requires the new version(v 1.3.0). You will need to migrate that to the latest version before I can add this.
I tried refactoring and it's breaking a lot of things
Same here, I also tried doing that but there is not enough documentation for the migration and usage.
I will be deprecating Shiki. It has become a burden at this point
how can i get the same syntax highlighting like i have in shiki any idea?
Give me a day to look that up. I'll update you tomorrow.
Hey @Ansub , Code-Hike is the best way that we can do this. Lets keep shiki in the component code display and for mdx code block we use code-hike.
@Ansub I got shiki 1.3.0 working with CodeGroup, CodeGroupFromFile, ComponentPreview, and normal backticks (including inline). Do you still want to stop using shiki?
@krishpatel023 you can check this implementation which @epoll31 , it was a great learning for me aswell.
Hey @Ansub, Yeah i saw the code and it was great to know the implementation. sorry I couldn't contribute and sorry for the late reply :)
No worries, it's a learning experience for all of us in the end.
That's the best part about open-source
Feature Description 📝
remove
react-syntax-highlighter
and addshiki
instead insrc/components/ComponentPreview.tsx