Skip to content

Commit

Permalink
fix(highlight): preload common languages (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jun 22, 2022
1 parent c21f5f1 commit 863a36f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/server/api/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export default defineLazyEventHandler(async () => {
const highlighter = await getHighlighter({
theme: theme?.default || theme || 'dark-plus',
langs: [
...(preload || ['json', 'js', 'ts', 'css']),
...(preload || []),
'diff',
'json',
'js',
'ts',
'css',
'shell',
'html',
'md',
Expand Down

0 comments on commit 863a36f

Please sign in to comment.