Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/page/components/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useMemo } from "react";
import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
import remarkGfm from "remark-gfm";
import slugify from "slugify";
import { IPostPublicData } from "../lib/data";
import Reactions from "./reactions";
Expand Down Expand Up @@ -75,6 +76,7 @@ export default function Post({
rehypeRaw,
// @ts-ignore
rehypeSanitize({ tagNames: ["div", "iframe"] }),
remarkGfm,
]}
components={{
img: (props) => {
Expand Down
1 change: 1 addition & 0 deletions apps/page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"remark": "^14.0.2",
"remark-gfm": "^4.0.0",
"remark-html": "^15.0.1",
"remark-parse": "^10.0.1",
"sharp": "^0.33.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/components/post/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useCallback, useMemo, useState } from "react";
import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
import remarkGfm from "remark-gfm";
import usePageUrl from "../../utils/hooks/usePageUrl";
import { useUserData } from "../../utils/useUser";
import { notifyError } from "../core/toast.component";
Expand Down Expand Up @@ -180,6 +181,7 @@ export function Post({
rehypeRaw,
// @ts-ignore
rehypeSanitize({ tagNames: ["div", "iframe"] }),
remarkGfm,
]}
>
{post.content}
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"rehype-raw": "^6.1.1",
"rehype-sanitize": "^5.0.1",
"remark": "^14.0.2",
"remark-gfm": "^4.0.0",
"remark-html": "^15.0.1",
"remark-parse": "^10.0.1",
"sharp": "^0.33.2",
Expand Down
Loading
Loading