Added notes to content

This commit is contained in:
DrMint 2022-04-16 21:28:46 +02:00
parent 741a10ef29
commit 025e4c4d31
2 changed files with 14 additions and 1 deletions

View File

@ -52,7 +52,11 @@ export default function Markdawn(props: Props): JSX.Element {
</a> </a>
); );
} }
return <a href={compProps.href}>{compProps.children}</a>; return (
<a href={compProps.href} target="_blank" rel="noreferrer">
{compProps.children}
</a>
);
}, },
}, },
h1: { h1: {

View File

@ -198,6 +198,15 @@ export default function Content(props: Props): JSX.Element {
</div> </div>
</div> </div>
)} )}
{selectedTextSet.notes && (
<div>
<p className="font-headers">{"Notes"}:</p>
<div className="grid place-items-center place-content-center gap-2">
<Markdawn text={selectedTextSet.notes} />
</div>
</div>
)}
</div> </div>
)} )}