feat: statically render the jet ansi text
This commit is contained in:
parent
e6a9b1a111
commit
5cbe032c23
7 changed files with 74 additions and 51 deletions
|
|
@ -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 }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue