mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
Fix preview description html. Fixes #110
This commit is contained in:
parent
b7cffe8ac3
commit
74f1f07ab1
1 changed files with 3 additions and 2 deletions
|
@ -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 && (
|
||||||
|
|
Loading…
Reference in a new issue