Skip to content

[Feature]: Add shiki syntax highlighting plugin support #211

@hustcer

Description

@hustcer

What problem does this feature solve?

rspress seems to support PL syntax highlighting by prismjs at the moment, hopefully the Shiki plugin can be added as well. The advantage of supporting shiki is that prism may can't support syntax highlighting for some less common programming languages in the short term, but if it supports the shiki plugin, the corresponding syntax highlighting grammar can be applied to shiki 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions