feat(messages): render markdown in message body
uses redcarpet gem to render markdown to html. Also a html email template is added.
This commit is contained in:
parent
fb8ccfea4a
commit
1419827f66
7 changed files with 37 additions and 4 deletions
|
|
@ -0,0 +1,6 @@
|
|||
= markdown(@message.body)
|
||||
%hr/
|
||||
%pre
|
||||
- if @message.group
|
||||
= raw t '.footer_group', group: @message.group.name
|
||||
= raw t '.footer', reply_url: new_message_url('message[reply_to]' => @message.id), msg_url: message_url(@message), profile_url: my_profile_url
|
||||
Loading…
Add table
Add a link
Reference in a new issue