diff --git a/app/terminal/highlight.ts b/app/terminal/highlight.ts index 76a1dc1..a170f71 100644 --- a/app/terminal/highlight.ts +++ b/app/terminal/highlight.ts @@ -1,4 +1,5 @@ import chalk from "chalk"; +chalk.level = 3; import { RuntimeLang } from "./runtime"; export async function importPrism() { diff --git a/app/terminal/repl.tsx b/app/terminal/repl.tsx index 89bb31a..cc31d14 100644 --- a/app/terminal/repl.tsx +++ b/app/terminal/repl.tsx @@ -3,6 +3,7 @@ import { useCallback, useEffect, useRef, useState } from "react"; import { highlightCodeToAnsi, importPrism } from "./highlight"; import chalk from "chalk"; +chalk.level = 3; import { clearTerminal, getRows, diff --git a/app/terminal/terminal.tsx b/app/terminal/terminal.tsx index c5e7011..de5a8ce 100644 --- a/app/terminal/terminal.tsx +++ b/app/terminal/terminal.tsx @@ -5,6 +5,7 @@ import type { Terminal } from "@xterm/xterm"; import type { FitAddon } from "@xterm/addon-fit"; import "@xterm/xterm/css/xterm.css"; import chalk from "chalk"; +chalk.level = 3; import { useChangeTheme } from "../[docs_id]/themeToggle"; /**