diff options
| author | Dax Raad <[email protected]> | 2025-07-13 23:06:31 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-13 23:06:31 -0400 |
| commit | 06554efdf455d33b2831a5142ea0c6eb01308352 (patch) | |
| tree | 3cb001165e6b9a4e85bca502cd76daf0f118f9c7 | |
| parent | 67e9bda94f39cb98dfc0ded54af7a05e4f8ec16d (diff) | |
| download | opencode-06554efdf455d33b2831a5142ea0c6eb01308352.tar.gz opencode-06554efdf455d33b2831a5142ea0c6eb01308352.zip | |
get rid of cli markdown dep
| -rw-r--r-- | packages/opencode/package.json | 1 | ||||
| -rw-r--r-- | packages/opencode/src/cli/ui.ts | 14 |
2 files changed, 1 insertions, 14 deletions
diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 6e61c1d82..c5b7e4ba9 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -33,7 +33,6 @@ "@openauthjs/openauth": "0.4.3", "@standard-schema/spec": "1.0.0", "ai": "catalog:", - "cli-markdown": "3.5.1", "decimal.js": "10.5.0", "diff": "8.0.2", "env-paths": "3.0.0", diff --git a/packages/opencode/src/cli/ui.ts b/packages/opencode/src/cli/ui.ts index 1b6c3cace..0fa4d1ce6 100644 --- a/packages/opencode/src/cli/ui.ts +++ b/packages/opencode/src/cli/ui.ts @@ -1,8 +1,6 @@ import { z } from "zod" import { EOL } from "os" import { NamedError } from "../util/error" -// @ts-ignore -import cliMarkdown from "cli-markdown" export namespace UI { const LOGO = [ @@ -80,16 +78,6 @@ export namespace UI { } export function markdown(text: string): string { - const rendered = cliMarkdown(text, { - width: process.stdout.columns || 80, - firstHeading: false, - tab: 0, - }).trim() - - // Remove leading space from each line - return rendered - .split("\n") - .map((line: string) => line.replace(/^ /, "")) - .join("\n") + return text } } |
