foodsoft/plugins/messages/app/views/messages_mailer/foodsoft_message.html.haml
Philipp Rothmann 1419827f66 feat(messages): render markdown in message body
uses redcarpet gem to render markdown to html. Also a html email template
is added.
2023-02-02 16:36:01 +01:00

6 lines
259 B
Text

= 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