RedCloth 4 - частичная поддержка
RedCloth 3 - RuTils выполняет перегрузку Textile Glyphs в RedCloth, перенося форматирование спецсимволов на Gilenson. Применять как стандартный RedCloth
RuTils::Gilenson::RedClothExtra.new(some_text).to_html
Этот метод в RedCloth при наличии Гиленсона становится заглушкой
# File lib/gilenson/redcloth_extra.rb, line 26 def htmlesc(text, mode=0) text end
# File lib/gilenson/redcloth_extra.rb, line 4 def to_html(*anything) suspended = super(*anything) # Return quotes to original state [187, 171, 8220, 8221].map do |e| suspended.gsub! /&\##{e};/, '"' end # Return spaces to original state [160].map do |e| suspended.gsub! /&\##{e};/, ' ' end suspended.gilensize end
Generated with the Darkfish Rdoc Generator 2.