1.0.0-rc.54 • Published 3 days ago
@vuepress-plume/plugin-shikiji v1.0.0-rc.54
@vuepress-plume/plugin-shikiji
使用 shiki
为 Markdown 代码块启用代码高亮。
Install
npm install @vuepress-plume/plugin-shikiji
# or
pnpm add @vuepress-plume/plugin-shikiji
# or
yarn add @vuepress-plume/plugin-shikiji
Usage
// .vuepress/config.[jt]s
import { shikijiPlugin } from '@vuepress-plume/plugin-shikiji'
export default {
// ...
plugins: [
shikijiPlugin()
]
// ...
}
Options
interface ShikijiOptions {
/**
* Custom theme for syntax highlighting.
*
* You can also pass an object with `light` and `dark` themes to support dual themes.
*
* @example { theme: 'github-dark' }
* @example { theme: { light: 'github-light', dark: 'github-dark' } }
*
* You can use an existing theme.
* @see https://shiki.style/themes
* Or add your own theme.
* @see https://shiki.style/guide/load-theme
*/
theme?: ThemeOptions
/**
* Languages for syntax highlighting.
* @see https://shiki.style/languages
*/
languages?: LanguageInput[]
/**
* Custom language aliases.
*
* @example { 'my-lang': 'js' }
* @see https://shiki.style/guide/load-lang#custom-language-aliases
*/
languageAlias?: Record<string, string>
/**
* Setup Shikiji instance
*/
shikiSetup?: (shikiji: Highlighter) => void | Promise<void>
/**
* Fallback language when the specified language is not available.
*/
defaultHighlightLang?: string
/**
* Transformers applied to code blocks
* @see https://shiki.style/guide/transformers
*/
codeTransformers?: ShikiTransformer[]
/**
* Enable transformerRenderWhitespace
* @default false
*/
whitespace?: boolean
}
1.0.0-rc.54
3 days ago
1.0.0-rc.53
11 days ago
1.0.0-rc.52
15 days ago
1.0.0-rc.51
17 days ago
1.0.0-rc.50
17 days ago
1.0.0-rc.49
27 days ago
1.0.0-rc.48
1 month ago
1.0.0-rc.47
1 month ago
1.0.0-rc.46
1 month ago
1.0.0-rc.45
1 month ago
1.0.0-rc.44
2 months ago
1.0.0-rc.43
2 months ago
1.0.0-rc.42
2 months ago
1.0.0-rc.41
2 months ago
1.0.0-rc.40
2 months ago
1.0.0-rc.39
2 months ago
1.0.0-rc.38
2 months ago
1.0.0-rc.37
2 months ago
1.0.0-rc.36
2 months ago
1.0.0-rc.35
2 months ago
1.0.0-rc.34
3 months ago
1.0.0-rc.33
3 months ago
1.0.0-rc.32
3 months ago
1.0.0-rc.31
3 months ago
1.0.0-rc.30
3 months ago
1.0.0-rc.29
3 months ago
1.0.0-rc.28
3 months ago
1.0.0-rc.27
4 months ago
1.0.0-rc.26
4 months ago
1.0.0-rc.25
4 months ago
1.0.0-rc.24
4 months ago
1.0.0-rc.23
4 months ago
1.0.0-rc.20
4 months ago
1.0.0-rc.22
4 months ago
1.0.0-rc.21
4 months ago
1.0.0-rc.17
4 months ago
1.0.0-rc.16
4 months ago
1.0.0-rc.19
4 months ago
1.0.0-rc.18
4 months ago
1.0.0-rc.15
4 months ago
1.0.0-rc.14
4 months ago
1.0.0-rc.13
4 months ago
1.0.0-rc.12
4 months ago
1.0.0-rc.11
4 months ago
1.0.0-rc.9
4 months ago
1.0.0-rc.8
4 months ago
1.0.0-rc.10
4 months ago
1.0.0-rc.7
4 months ago
1.0.0-rc.5
4 months ago
1.0.0-rc.6
4 months ago
1.0.0-rc.4
4 months ago
1.0.0-rc.3
4 months ago
1.0.0-rc.2
4 months ago
1.0.0-rc.1
4 months ago
1.0.0-rc.0
4 months ago
1.0.0-beta.89
4 months ago