|
|
|
@ -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
|
|
|
|
|