Browse Source

Merge branch 'dev'

pull/1/head
Dessalines 2 years ago
parent
commit
6f799d117e
  1. 2
      src/components/comment-node.tsx
  2. 2
      src/components/post-listing.tsx

2
src/components/comment-node.tsx

@ -112,7 +112,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
{this.state.showEdit && <CommentForm node={node} edit onReplyCancel={this.handleReplyCancel} disabled={this.props.locked} />}
{!this.state.showEdit && !this.state.collapsed &&
<div>
{this.state.viewSource ? <div>{this.commentUnlessRemoved}</div> :
{this.state.viewSource ? <pre>{this.commentUnlessRemoved}</pre> :
<div className="md-div" dangerouslySetInnerHTML={mdToHtml(this.commentUnlessRemoved)} />
}
<ul class="list-inline mb-1 text-muted small font-weight-bold">

2
src/components/post-listing.tsx

@ -309,7 +309,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
}
{this.props.showBody && post.body &&
<>
{this.state.viewSource ? <div>{post.body}</div> :
{this.state.viewSource ? <pre>{post.body}</pre> :
<div className="md-div" dangerouslySetInnerHTML={mdToHtml(post.body)} />
}
</>

Loading…
Cancel
Save