From 59dff529efea25854c9009658e320f1d4b897fe4 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 19 Oct 2024 23:47:08 +0200 Subject: [PATCH] Add Markdown support to Manga-Description --- Website/modules/interfaces/IManga.tsx | 5 +- package-lock.json | 2118 ++++++++++++++++++++++++- package.json | 3 + 3 files changed, 2114 insertions(+), 12 deletions(-) diff --git a/Website/modules/interfaces/IManga.tsx b/Website/modules/interfaces/IManga.tsx index e6fd2b6..64c6aa7 100644 --- a/Website/modules/interfaces/IManga.tsx +++ b/Website/modules/interfaces/IManga.tsx @@ -1,10 +1,11 @@ import IMangaConnector from "./IMangaConnector"; import KeyValuePair from "./KeyValuePair"; import {Manga} from "../Manga"; -import React, {ChangeEventHandler, EventHandler, ReactElement} from "react"; +import React, {EventHandler, ReactElement} from "react"; import {Job} from "../Job"; import Icon from '@mdi/react'; import { mdiTagTextOutline, mdiAccountEdit } from '@mdi/js'; +import MarkdownPreview from '@uiw/react-markdown-preview'; export default interface IManga{ "sortName": string, @@ -62,7 +63,7 @@ export function SearchResult(manga: IManga, jobsChanged: EventHandler) : Re {manga.authors.map(author =>
  • {author}
  • )} {manga.tags.map(tag =>
  • {tag}
  • )} -

    {manga.description}

    +