We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a72f6b commit d7661eaCopy full SHA for d7661ea
packages/site-kit/src/lib/markdown/utils.ts
@@ -1,24 +1,19 @@
1
import { Marked, type Renderer, type TokenizerObject, type MarkedExtension } from 'marked';
2
import json5 from 'json5';
3
4
+// we only need this map for languages not recognised or aliased by Shiki
5
+// see https://shiki.style/languages
6
export const SHIKI_LANGUAGE_MAP = {
- bash: 'bash',
- sh: 'bash',
7
env: 'bash',
8
- yaml: 'yaml',
9
- toml: 'toml',
10
html: 'svelte',
11
- svelte: 'svelte',
12
sv: 'svelte',
13
css: 'css',
14
js: 'javascript',
15
json: 'javascript',
16
jsonc: 'javascript',
17
dts: 'typescript',
18
- ts: 'typescript',
19
// TODO: find a highlighter for tree syntax
20
tree: '',
21
- '': ''
22
};
23
24
/**
0 commit comments