Skip to content

Commit

Permalink
fix(types): support preload built-in shiki languages as string (#4513)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Jan 22, 2025
1 parent b88ae8d commit 4f77b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import MarkdownIt from 'markdown-it'
import anchorPlugin from 'markdown-it-anchor'
import attrsPlugin from 'markdown-it-attrs'
import { full as emojiPlugin } from 'markdown-it-emoji'
import type { BuiltinTheme, Highlighter } from 'shiki'
import type { BuiltinLanguage, BuiltinTheme, Highlighter } from 'shiki'
import type { Logger } from 'vite'
import { containerPlugin, type ContainerOptions } from './plugins/containers'
import { gitHubAlertsPlugin } from './plugins/githubAlerts'
Expand Down Expand Up @@ -81,10 +81,10 @@ export interface MarkdownOptions extends Options {
*/
theme?: ThemeOptions
/**
* Languages for syntax highlighting.
* Custom languages for syntax highlighting or pre-load built-in languages.
* @see https://shiki.style/languages
*/
languages?: LanguageInput[]
languages?: (LanguageInput | BuiltinLanguage)[]
/**
* Custom language aliases.
*
Expand Down

0 comments on commit 4f77b4f

Please sign in to comment.