mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
use new markdown
This commit is contained in:
@@ -8,6 +8,7 @@ import Image from "next/image";
|
||||
import urlJoin from "url-join";
|
||||
import { apiUrl } from "../../../global";
|
||||
import { Prisma } from "@prisma/client";
|
||||
import Markdown from "../../../Markdown";
|
||||
|
||||
type ArticleWithIncludes = Prisma.ArticleGetPayload<{
|
||||
include: { contentTableEntries: true; category: true; image: true };
|
||||
@@ -63,13 +64,15 @@ export default async function ArticlePage({ params }: { params: { articleName: s
|
||||
/>
|
||||
<p>{article?.introduction}</p>
|
||||
</div>
|
||||
<div
|
||||
<Markdown value={markdown} />
|
||||
<LoadMarkdown />
|
||||
{/* <div
|
||||
className="markdown"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: ParseMarkdown(markdown),
|
||||
}}
|
||||
></div>
|
||||
<LoadMarkdown />
|
||||
<LoadMarkdown /> */}
|
||||
</div>
|
||||
<Sidebar />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user