Skip to content

Commit

Permalink
fix(highlight): preload typescript language
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 31, 2024
1 parent de55cf0 commit 36953f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function getHighlighPluginInstance(options: HighlighterOptions) {
async function _getHighlighPlugin(options: HighlighterOptions) {
const key = hash(JSON.stringify(options || {}))
if (!highlightPlugin || highlightPlugin.key !== key) {
const langs = Array.from(new Set(['bash', 'html', 'mdc', 'vue', 'yml', 'scss', 'ts', 'ts', ...(options.langs || [])]))
const langs = Array.from(new Set(['bash', 'html', 'mdc', 'vue', 'yml', 'scss', 'ts', 'ts', 'typescript', ...(options.langs || [])]))
const themesObject = typeof options.theme === 'string' ? { default: options.theme } : options.theme || { default: 'material-theme-palenight' }
const bundledThemes = await Promise.all(Object.entries(themesObject)
.map(async ([name, theme]) => [
Expand Down

0 comments on commit 36953f5

Please sign in to comment.