|
|
@@ -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
|
|
|
}
|
|
|
}
|