Skip to content

Commit 5e14703

Browse files
committed
handle bold ansi codes correctly
1 parent 2bd7b87 commit 5e14703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ansi-colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function convertToHtmlSpans(str: string) {
2424
const el = node as Element;
2525
if (el.getAttribute("style") === "font-weight:bold") {
2626
el.removeAttribute("style");
27-
el.classList.add("ansi-highlight");
27+
el.classList.add("ansi-bold");
2828
}
2929
}
3030
return doc.querySelector("pre")!.innerHTML;

0 commit comments

Comments
 (0)