Skip to content

Commit

Permalink
fix: set correctly default background and foreground color for ansi e…
Browse files Browse the repository at this point in the history
…rrors (#22)
  • Loading branch information
matteo-cristino authored Aug 5, 2024
1 parent ca45bf4 commit 5875d23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function ErrorRenderer(props: { error: SlangroomError }) {

function AnsiRenderer(props: { text: string; className?: string }) {
const { text, className = '' } = props;
const converter = new Convert();
const converter = new Convert({ bg: '#F1F5F9', fg: '#1E293B' });
return <pre class={className} innerHTML={converter.toHtml(text)}></pre>;
}

Expand Down

0 comments on commit 5875d23

Please sign in to comment.