|
|
@ -112,7 +112,11 @@ class WikiController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def preview
|
|
|
|
def preview
|
|
|
|
@text = params[:text]
|
|
|
|
@text = params[:text]
|
|
|
|
|
|
|
|
begin
|
|
|
|
render :text => BlueCloth.new(@text).to_html
|
|
|
|
render :text => BlueCloth.new(@text).to_html
|
|
|
|
|
|
|
|
rescue
|
|
|
|
|
|
|
|
render :text => $!.to_s.gsub(">", ">").gsub("<", "<")
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def diff
|
|
|
|
def diff
|
|
|
|