Skip to content

Commit 613343c

Browse files
committed
markdown on forum
1 parent c1302e5 commit 613343c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

views/discussions/show.haml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
%img{:src => gravatar_url_for(@discussion.author_email)}
55
%h1= @discussion.title
66
%p{:style => "padding-bottom:1em"} By <a href="/hackers/#{@discussion.author}">#{@discussion.author}</a>
7+
:markdown
8+
#{@discussion.body}
79

8-
%p= @discussion.body
9-
10-
%hr
10+
%hr
1111

1212
- @discussion.replies.each do |reply|
1313
.comment{:style => "clear:both"}
@@ -17,8 +17,8 @@
1717
%div{:style => "width:500px"}
1818
%p
1919
<a href="/hackers/#{reply.author}">#{reply.author}</a> says:
20-
%p
21-
= reply.body
20+
:markdown
21+
#{reply.body}
2222

2323
%hr
2424

0 commit comments

Comments
 (0)