Merge pull request #332 from LemmyNet/fix/preview_desc
Fix/preview desc
This commit is contained in:
commit
826b5758b6
2 changed files with 4 additions and 3 deletions
2
src/assets/css/themes/litely.min.css
vendored
2
src/assets/css/themes/litely.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -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