Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/setup-utils/vue-config-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function baseChainWebpack(config) {
}]);

// Limit highlight.js to only the necessary languages
const builtinLanguages = 'bash|c|s?css|cpp|diff|http|java|llvm|perl|php|python|ruby|xml|javascript|json|markdown|objectivec|shell|swift|yaml';
const builtinLanguages = 'bash|c|s?css|cpp|diff|http|java|llvm|perl|php|python|ruby|xml|javascript|json|markdown|objectivec|shell|swift|typescript|yaml';
const envLanguages = (process.env.VUE_APP_HLJS_LANGUAGES ?? '').split(',').join('|');
config
.plugin('LanguagesPlugin')
Expand Down
1 change: 1 addition & 0 deletions src/utils/syntax-highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const Languages = {
scss: [],
shell: ['console', 'shellsession'],
swift: [],
typescript: ['typescript', 'ts', 'tsx', 'mts', 'cts'],
xml: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist', 'wsf', 'svg'],
yaml: ['yml', 'yaml'],
// load more languages from the environment
Expand Down