Possibly fix /ajax/preview
This commit is contained in:
parent
1796283ace
commit
d11b16dad6
|
@ -86,7 +86,7 @@ class Ajax::QuestionController < ApplicationController
|
|||
|
||||
@message = "Failed to render markdown."
|
||||
begin
|
||||
@markdown = markdown(params[:md], Time.new)
|
||||
@markdown = markdown params[:md]
|
||||
@message = "Successfully rendered markdown."
|
||||
rescue
|
||||
@status = :fail
|
||||
|
|
Loading…
Reference in New Issue