Skip to content

Commit

Permalink
chore: remove theme from comment content
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mineev authored and umputun committed Jan 18, 2024
1 parent e043dc2 commit 82c6178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,7 @@ export class CommentForm extends Component<Props, State> {
!!preview && (
<div className="comment-form__preview-wrapper">
<div
className={b('comment-form__preview', {
mix: b('raw-content', {}, { theme }),
})}
className="comment-form__preview raw-content"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: preview }}
/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/apps/remark42/app/components/comment/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export class Comment extends Component<CommentProps, State> {
)}
</div>{' '}
<div
className={b('comment__text', { mix: b('raw-content', {}, { theme: props.theme }) })}
className="comment__text raw-content"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: o.text }}
/>
Expand Down Expand Up @@ -473,7 +473,7 @@ export class Comment extends Component<CommentProps, State> {
<div className="comment__body">
{(!props.collapsed || props.view === 'pinned') && (
<div
className={b('comment__text', { mix: b('raw-content', {}, { theme: props.theme }) })}
className="comment__text raw-content"
ref={this.textNode}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: o.text }}
Expand Down

0 comments on commit 82c6178

Please sign in to comment.