We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db60d06 commit b39655cCopy full SHA for b39655c
src/core/ansi-colors.ts
@@ -1,11 +1,10 @@
1
/*
2
-* ansi-colors.ts
3
-*
4
-* Copyright (C) 2020-2022 Posit Software, PBC
5
6
-*/
+ * ansi-colors.ts
+ *
+ * Copyright (C) 2020-2022 Posit Software, PBC
+ */
7
8
-import ansiUp from "ansi_up";
+import { AnsiUp } from "ansi_up";
9
import { Element, parseHtml } from "./deno-dom.ts";
10
11
export function hasAnsiEscapeCodes(str: string) {
@@ -14,7 +13,7 @@ export function hasAnsiEscapeCodes(str: string) {
14
13
}
15
16
export async function convertToHtmlSpans(str: string) {
17
- const a = new ansiUp();
+ const a = new AnsiUp();
18
a.use_classes = true;
19
const html = a.ansi_to_html(str);
20
0 commit comments