Skip to content

Commit

Permalink
Fix: markdown dropped from quote replies
Browse files Browse the repository at this point in the history
Signed-off-by: marcin mikołajczak <[email protected]>
  • Loading branch information
mkljczk committed Jul 17, 2022
1 parent c2d511b commit 448da63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/soapbox/components/quoted-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const QuotedStatus: React.FC<IQuotedStatus> = ({ status, onCancel, compose }) =>
{renderReplyMentions()}

<Text
className='break-words'
className='break-words status__content status__content--quote'
size='sm'
dangerouslySetInnerHTML={{ __html: status.contentHtml }}
/>
Expand Down
11 changes: 11 additions & 0 deletions app/styles/components/status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
padding: 5px;
}
}

&--quote {
ul,
ol {
@apply pl-4;
}

blockquote {
@apply pl-2;
}
}
}

.status__content > ul,
Expand Down

0 comments on commit 448da63

Please sign in to comment.