Skip to content

Commit 811f6e3

Browse files
committed
revert removing known aliases
1 parent 1441e6e commit 811f6e3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function stringify_expanded_type(type: Declaration) {
245245
}
246246

247247
/**
248-
* Helper function for {@link replace_export_type_placeholders}. Renders specifiv members to their markdown/html representation.
248+
* Helper function for {@link replace_export_type_placeholders}. Renders specific members to their markdown/html representation.
249249
*/
250250
function stringify(member: TypeElement, lang: keyof typeof SHIKI_LANGUAGE_MAP = 'ts'): string {
251251
if (!member) return '';

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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
4+
// also includes languages not recognised or aliased by Shiki
55
// see https://shiki.style/languages
66
export const SHIKI_LANGUAGE_MAP = {
7+
bash: 'bash',
8+
sh: 'bash',
79
env: 'bash',
810
html: 'svelte',
11+
svelte: 'svelte',
912
sv: 'svelte',
13+
css: 'css',
14+
js: 'js',
1015
json: 'javascript',
1116
jsonc: 'javascript',
17+
ts: 'typescript',
1218
dts: 'typescript',
1319
// TODO: find a highlighter for tree syntax
1420
tree: ''

0 commit comments

Comments
 (0)