vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
20 stars 26 forks source link

Update shikiPlugin.ts #135

Closed jianjianai closed 1 month ago

jianjianai commented 1 month ago

添加一个 extendsHighlighterConfigOptions 钩子。( shiki 在加载自定义主题时需要用到 highlighter 对象)

Mister-Hope commented 1 month ago

docs need update, and an example code with this option is needed in pr body.

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 9089456277

Details


Totals Coverage Status
Change from base Build 9075650266: 0.0%
Covered Lines: 681
Relevant Lines: 1238

💛 - Coveralls
pengzhanbo commented 1 month ago

近期 @vuepress/plugin-shiki 会有一次比较大的更新,且看起来你的这个 PR 提出的功能已在 #137 中实现, 有一个新的配置选项 shikiSetup: (shiki: Highlighter) => void | Promise<void> ,它应该能够满足你的需求。