mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
@@ -412,6 +412,9 @@ async function getMarkdownOptions(md: () => MarkdownIt): Promise<MarkdownIt.Opti
|
|||||||
|
|
||||||
function normalizeHighlightLang(lang: string | undefined) {
|
function normalizeHighlightLang(lang: string | undefined) {
|
||||||
switch (lang && lang.toLowerCase()) {
|
switch (lang && lang.toLowerCase()) {
|
||||||
|
case 'py3':
|
||||||
|
return 'python';
|
||||||
|
|
||||||
case 'tsx':
|
case 'tsx':
|
||||||
case 'typescriptreact':
|
case 'typescriptreact':
|
||||||
// Workaround for highlight not supporting tsx: https://github.com/isagalaev/highlight.js/issues/1155
|
// Workaround for highlight not supporting tsx: https://github.com/isagalaev/highlight.js/issues/1155
|
||||||
|
|||||||
Reference in New Issue
Block a user