Skip to content

Commit d7661ea

Browse files
authored
Update utils.ts
1 parent 1a72f6b commit d7661ea

File tree

1 file changed

+2
-7
lines changed
  • packages/site-kit/src/lib/markdown

1 file changed

+2
-7
lines changed

packages/site-kit/src/lib/markdown/utils.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
import { Marked, type Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
22
import json5 from 'json5';
33

4+
// we only need this map for languages not recognised or aliased by Shiki
5+
// see https://shiki.style/languages
46
export const SHIKI_LANGUAGE_MAP = {
5-
bash: 'bash',
6-
sh: 'bash',
77
env: 'bash',
8-
yaml: 'yaml',
9-
toml: 'toml',
108
html: 'svelte',
11-
svelte: 'svelte',
129
sv: 'svelte',
1310
css: 'css',
1411
js: 'javascript',
1512
json: 'javascript',
1613
jsonc: 'javascript',
1714
dts: 'typescript',
18-
ts: 'typescript',
1915
// TODO: find a highlighter for tree syntax
2016
tree: '',
21-
'': ''
2217
};
2318

2419
/**

0 commit comments

Comments
 (0)