dev_forum
SylorHuang 5 years ago
parent 9c7523a852
commit 5db1bbd18a

@ -335,6 +335,7 @@ module ApplicationHelper
end
def to_markdown(text)
Rails.logger.info("#########################text______________tedxt_________________###{text}")
return nil if text.blank?
options = {
:autolink => true,
@ -346,7 +347,10 @@ module ApplicationHelper
:tables => true
}
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,options)
markdown.render(text)
ss = markdown.render(text)
Rails.logger.info("#########################text______________markdown.render(text)________________###{ss}")
ss
end
end

Loading…
Cancel
Save