isBanned,
isMod,
mdToHtml,
+ mdToHtmlNoImages,
numToSI,
setupTippy,
showScores,
enableDownvotes: boolean;
viewType: CommentViewType;
allLanguages: Language[];
+ hideImages?: boolean;
}
export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
) : (
<div
className="md-div"
- dangerouslySetInnerHTML={mdToHtml(
- this.commentUnlessRemoved
- )}
+ dangerouslySetInnerHTML={
+ this.props.hideImages
+ ? mdToHtmlNoImages(this.commentUnlessRemoved)
+ : mdToHtml(this.commentUnlessRemoved)
+ }
/>
)}
<div className="d-flex justify-content-between justify-content-lg-start flex-wrap text-muted font-weight-bold">
enableDownvotes={this.props.enableDownvotes}
viewType={this.props.viewType}
allLanguages={this.props.allLanguages}
+ hideImages={this.props.hideImages}
/>
)}
{/* A collapsed clearfix */}