mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-26 21:01:28 +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 { Post } from "lemmy-js-client";
|
||||
import { mdToHtml } from "../utils";
|
||||
import { i18n } from "../i18next";
|
||||
import { Icon } from "./icon";
|
||||
|
||||
|
@ -54,7 +53,9 @@ export class IFramelyCard extends Component<
|
|||
{post.embed_description && (
|
||||
<div
|
||||
className="card-text small text-muted md-div"
|
||||
dangerouslySetInnerHTML={mdToHtml(post.embed_description)}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: post.embed_description,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{post.embed_html && (
|
||||
|
|
Loading…
Reference in a new issue