Skip to content

Commit bbc3e1c

Browse files
committed
- add changelog
- fix lint errors
1 parent ea6f853 commit bbc3e1c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ title: Changelog
88

99
- `@inline` now functions when referencing tuple types, #2932.
1010
- `@link` links to the current page are now rendered, #2934.
11+
- `@includeCode` does not allow regions in typescript files with `.mts` file extension, #2935.
1112

1213
## v0.28.2 (2025-04-07)
1314

src/lib/utils/highlighter.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import * as shiki from "@gerrit0/mini-shiki";
22
import { JSX, unique } from "#utils";
33
import assert from "assert";
44

5-
const aliases = new Map<string, string>([['mts', 'typescript'], ['cts', 'typescript']]);
5+
const tsAliases: [string, string][] = [["mts", "typescript"], ["cts", "typescript"]];
6+
const aliases = new Map<string, string>(tsAliases);
67
for (const lang of shiki.bundledLanguagesInfo) {
78
for (const alias of lang.aliases || []) {
89
aliases.set(alias, lang.id);

0 commit comments

Comments
 (0)