Merge pull request #332 from LemmyNet/fix/preview_desc

Fix/preview desc
This commit is contained in:
Dessalines 2021-07-16 23:43:18 -04:00 committed by GitHub
commit 826b5758b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,5 @@
import { Component, linkEvent } from "inferno"; import { Component, linkEvent } from "inferno";
import { Post } from "lemmy-js-client"; import { Post } from "lemmy-js-client";
import { mdToHtml } from "../utils";
import { i18n } from "../i18next"; import { i18n } from "../i18next";
import { Icon } from "./icon"; import { Icon } from "./icon";
@ -54,7 +53,9 @@ export class IFramelyCard extends Component<
{post.embed_description && ( {post.embed_description && (
<div <div
className="card-text small text-muted md-div" className="card-text small text-muted md-div"
dangerouslySetInnerHTML={mdToHtml(post.embed_description)} dangerouslySetInnerHTML={{
__html: post.embed_description,
}}
/> />
)} )}
{post.embed_html && ( {post.embed_html && (