You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since auto_link is called first, RedCloth will never see something of the form "site":, and so will never set up the link properly. I got around this by overriding this method in a separate file under my /lib directory:
def body_html_with_formatting
# COMMENTED OUT to fix problem where "site":<url> was never getting processed
#body_html = auto_link(body) { |text| truncate(text, 50) }
textilized = RedCloth.new(body, [ :hard_breaks ])
textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=")
white_list(textilized.to_html)
end
Anyone else?
Jack
The text was updated successfully, but these errors were encountered:
in white_list_formatted_content/init.rb:
Since auto_link is called first, RedCloth will never see something of the form "site":, and so will never set up the link properly. I got around this by overriding this method in a separate file under my /lib directory:
Anyone else?
Jack
The text was updated successfully, but these errors were encountered: