Skip to content

Commit 42d4aad

Browse files
committed
refactor: remove code highlighting for now
1 parent a60fc09 commit 42d4aad

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

deno.jsonc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"@std/path": "jsr:@std/path@1.0.6",
2626
"@std/semver": "jsr:@std/semver@1.0.3",
2727
"@std/toml": "jsr:@std/toml@1.0.1",
28-
"@x/hue/theme": "https://deno.land/x/hue@0.0.0-alpha.1/themes/mod.ts",
29-
"@x/hue/typescript": "https://deno.land/x/hue@0.0.0-alpha.1/languages/typescript/typescript.ts",
3028
"@x/rusty_markdown": "https://deno.land/x/rusty_markdown@v0.4.1/mod.ts"
3129
}
3230
}

deps.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ export { type Extension, renderMarkdown } from "@littletof/charmd";
1111
export { readAll } from "@std/io";
1212
export { SEPARATOR as SEP } from "@std/path";
1313
export { SEPARATOR as POSIX_SEP } from "@std/path/posix";
14-
export { DefaultTheme } from "@x/hue/theme";
15-
export { default as Typescript } from "@x/hue/typescript";
1614
export { CommandBuilder };
1715

1816
export const $ = build$({

src/markdown.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { $, colors, DefaultTheme, type Extension, renderMarkdown, Typescript } from "../deps.ts";
1+
import { $, colors, type Extension, renderMarkdown } from "../deps.ts";
22

33
export type CodeBlock = {
44
idx: number;
@@ -140,7 +140,8 @@ export function renderMDToString(mdContent: string, opts: { linePrefix?: string;
140140
case "json":
141141
case "jsonc":
142142
case "json5":
143-
code = new Typescript(code, DefaultTheme, { output: "console" }).highlight();
143+
// TODO: restore code highlighting for typescript here
144+
// code = new Typescript(code, DefaultTheme, { output: "console" }).highlight();
144145
break;
145146
}
146147

0 commit comments

Comments
 (0)