Skip to content

Commit 36953f5

Browse files
committed
fix(highlight): preload typescript language
1 parent de55cf0 commit 36953f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/content/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function getHighlighPluginInstance(options: HighlighterOptions) {
3434
async function _getHighlighPlugin(options: HighlighterOptions) {
3535
const key = hash(JSON.stringify(options || {}))
3636
if (!highlightPlugin || highlightPlugin.key !== key) {
37-
const langs = Array.from(new Set(['bash', 'html', 'mdc', 'vue', 'yml', 'scss', 'ts', 'ts', ...(options.langs || [])]))
37+
const langs = Array.from(new Set(['bash', 'html', 'mdc', 'vue', 'yml', 'scss', 'ts', 'ts', 'typescript', ...(options.langs || [])]))
3838
const themesObject = typeof options.theme === 'string' ? { default: options.theme } : options.theme || { default: 'material-theme-palenight' }
3939
const bundledThemes = await Promise.all(Object.entries(themesObject)
4040
.map(async ([name, theme]) => [

0 commit comments

Comments
 (0)