File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import MarkdownIt from 'markdown-it'
2424import anchorPlugin from 'markdown-it-anchor'
2525import attrsPlugin from 'markdown-it-attrs'
2626import { full as emojiPlugin } from 'markdown-it-emoji'
27- import type { BuiltinTheme , Highlighter } from 'shiki'
27+ import type { BuiltinLanguage , BuiltinTheme , Highlighter } from 'shiki'
2828import type { Logger } from 'vite'
2929import { containerPlugin , type ContainerOptions } from './plugins/containers'
3030import { gitHubAlertsPlugin } from './plugins/githubAlerts'
@@ -81,10 +81,10 @@ export interface MarkdownOptions extends Options {
8181 */
8282 theme ?: ThemeOptions
8383 /**
84- * Languages for syntax highlighting.
84+ * Custom languages for syntax highlighting or pre-load built-in languages .
8585 * @see https://shiki.style/languages
8686 */
87- languages ?: LanguageInput [ ]
87+ languages ?: ( LanguageInput | BuiltinLanguage ) [ ]
8888 /**
8989 * Custom language aliases.
9090 *
You can’t perform that action at this time.
0 commit comments