Treat all newly entered blocks of text as Markdown

This commit is contained in:
Tom Hughes 2012-02-15 00:48:52 +00:00
parent 2ee961be9f
commit aa4205482a
21 changed files with 154 additions and 23 deletions

View file

@ -3,7 +3,7 @@
<%= t'notifier.diary_comment_notification.header', :from_user => @from_user, :subject => @title %>
==
<%= raw @text %>
<%= raw @text.to_text %>
==
<%= t'notifier.diary_comment_notification.footer', :readurl => @readurl, :commenturl => @commenturl, :replyurl => @replyurl %>

View file

@ -3,7 +3,7 @@
<p><%= raw t'notifier.message_notification.header', :from_user => link_to(@from_user, :host => SERVER_URL, :controller => :user, :action => :view, :display_name => @from_user), :subject => @title %></p>
==
<%= htmlize @text %>
<%= @text.to_html %>
==
<p>

View file

@ -3,7 +3,7 @@
<%= raw t'notifier.message_notification.header', :from_user => @from_user, :subject => @title %>
==
<%= raw @text %>
<%= raw @text.to_text %>
==
<%= raw t'notifier.message_notification.footer1', :readurl => @readurl %>