Skip to content

Commit 55f7143

Browse files
committed
Remove nested p tags in comments.
Caused by nesting markdown inside p tag. See https://assembly.com/coderwall/wips/324#comment-3.
1 parent 802bd6f commit 55f7143

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/views/comments/_comment.html.haml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
%a.like{:href =>like_protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-remote' => 'true', 'data-method' => :post, :class => comment_liked_class(comment), :rel => "nofollow"}
88
=comment_likes(comment)
99
.comment
10-
%p
11-
=raw sanitize(formatted_comment(comment.body))
10+
=raw sanitize(formatted_comment(comment.body))
1211
- if can_edit_comment?(comment)
1312
.edit-comment.hidden
1413
=form_for [comment.commentable, comment] do |f|

0 commit comments

Comments
 (0)