This commit is contained in:
Arthur
2023-02-01 03:34:02 +03:00
committed by GitHub
parent 37270704ed
commit 934e0ee5d8

View File

@@ -412,6 +412,9 @@ async function getMarkdownOptions(md: () => MarkdownIt): Promise<MarkdownIt.Opti
function normalizeHighlightLang(lang: string | undefined) {
switch (lang && lang.toLowerCase()) {
case 'py3':
return 'python';
case 'tsx':
case 'typescriptreact':
// Workaround for highlight not supporting tsx: https://github.com/isagalaev/highlight.js/issues/1155