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 urlJoin from "url-join";
|
||||||
import { apiUrl } from "../../../global";
|
import { apiUrl } from "../../../global";
|
||||||
import { Prisma } from "@prisma/client";
|
import { Prisma } from "@prisma/client";
|
||||||
|
import Markdown from "../../../Markdown";
|
||||||
|
|
||||||
type ArticleWithIncludes = Prisma.ArticleGetPayload<{
|
type ArticleWithIncludes = Prisma.ArticleGetPayload<{
|
||||||
include: { contentTableEntries: true; category: true; image: true };
|
include: { contentTableEntries: true; category: true; image: true };
|
||||||
@@ -63,13 +64,15 @@ export default async function ArticlePage({ params }: { params: { articleName: s
|
|||||||
/>
|
/>
|
||||||
<p>{article?.introduction}</p>
|
<p>{article?.introduction}</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<Markdown value={markdown} />
|
||||||
|
<LoadMarkdown />
|
||||||
|
{/* <div
|
||||||
className="markdown"
|
className="markdown"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: ParseMarkdown(markdown),
|
__html: ParseMarkdown(markdown),
|
||||||
}}
|
}}
|
||||||
></div>
|
></div>
|
||||||
<LoadMarkdown />
|
<LoadMarkdown /> */}
|
||||||
</div>
|
</div>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user