Starting slidev with the latest shiki version would produce the following warning:
[slidev] loadTheme in setup/shiki.ts is deprecated. Pass directly the theme name it's supported by Shiki. For custom themes, load it manually via JSON.parse(fs.readFileSync(path, 'utf-8')) and pass the raw JSON object instead.
This commit fixes the warning and also removes a redundant slash in develompment configuration.
Starting slidev with the latest shiki version would produce the following warning:
[slidev]
loadTheme
insetup/shiki.ts
is deprecated. Pass directly the theme name it's supported by Shiki. For custom themes, load it manually viaJSON.parse(fs.readFileSync(path, 'utf-8'))
and pass the raw JSON object instead.This commit fixes the warning and also removes a redundant slash in develompment configuration.