Closed hustcer closed 10 months ago
Hey, any thoughts on this issue?
We may move away from VuePress
and use rspress
instead someday: https://github.com/nushell/nushell.github.io/issues/1126
And this is the most important thing we care about. Thanks
Thanks for feedback. I think it's important to ensure the flexibility in code highlight solution. Currently the most difficult thing is that rspress does code highlight in runtime instead of compiled-time, in the meanwhile, shiki only supports compiled-time code highlight in most cases. So i'm going to solve the problem and add a @rspress/plugin-shiki to support shiki highlight in rspress.
That’s great, very appreciated !
I will support the plugin this week and notify you after finishing it.
Take it easy, no rush at all
@sanyuan0704 Great, Thanks
What problem does this feature solve?
rspress
seems to support PL syntax highlighting by prismjs at the moment, hopefully theShiki
plugin can be added as well. The advantage of supportingshiki
is that prism may can't support syntax highlighting for some less common programming languages in the short term, but if it supports theshiki
plugin, the corresponding syntax highlighting grammar can be applied toshiki
as long as it has a VSCode extension. And the Nushell official site is currently using this solution!What does the proposed API look like?
Something like this: https://vuepress.github.io/reference/plugin/shiki.html