diff --git a/pkg/view/package.json b/pkg/view/package.json index 461a71e..69ee8c3 100644 --- a/pkg/view/package.json +++ b/pkg/view/package.json @@ -17,11 +17,13 @@ "hls.js": "^1.5.3", "medium-zoom": "^1.1.0", "solid-js": "^1.8.7", + "solid-markdown": "^2.0.0", "universal-cookie": "^7.0.2" }, "devDependencies": { + "@tailwindcss/typography": "^0.5.10", "autoprefixer": "^10.4.17", - "daisyui": "^4.6.0", + "daisyui": "^4.6.1", "postcss": "^8.4.33", "solid-devtools": "^0.29.3", "tailwindcss": "^3.4.1", diff --git a/pkg/view/src/components/PostItem.tsx b/pkg/view/src/components/PostItem.tsx index 189e68d..159e994 100644 --- a/pkg/view/src/components/PostItem.tsx +++ b/pkg/view/src/components/PostItem.tsx @@ -1,6 +1,7 @@ import { createSignal, For, Show } from "solid-js"; import { getAtk, useUserinfo } from "../stores/userinfo.tsx"; import PostAttachments from "./PostAttachments.tsx"; +import { SolidMarkdown } from "solid-markdown"; export default function PostItem(props: { post: any, @@ -55,18 +56,20 @@ export default function PostItem(props: { -