feat: statically render the jet ansi text

This commit is contained in:
Jet Pham 2026-03-05 13:18:50 -08:00
parent e6a9b1a111
commit 5cbe032c23
No known key found for this signature in database
7 changed files with 74 additions and 51 deletions

View file

@ -1,6 +1,3 @@
import React from "react";
import Ansi from "./ansi";
interface HeaderProps {
content: string;
className?: string;
@ -8,9 +5,9 @@ interface HeaderProps {
export default function Header({ content, className }: HeaderProps) {
return (
<div className={className}>
<Ansi>{content}</Ansi>
</div>
<div
className={className}
dangerouslySetInnerHTML={{ __html: content }}
/>
);
}