Skip to content

Commit a3cfc8a

Browse files
committed
Parse with react-markdown.
1 parent ca1fe64 commit a3cfc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/libresplit/AppGitHubReadme.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { useEffect, useState } from "react";
22

3+
import Markdown from "react-markdown";
4+
35
export function AppGitHubReadme() {
46
const [readme, setReadme] = useState<string>("Loading...");
57

@@ -22,7 +24,7 @@ export function AppGitHubReadme() {
2224

2325
return (
2426
<div>
25-
<p>{readme}</p>
27+
<Markdown>{readme}</Markdown>
2628
</div>
2729
);
2830
}

0 commit comments

Comments
 (0)