Parent

Methods

RuTils::Gilenson::RedClothExtra

RedCloth 4 - частичная поддержка


RedCloth 3 - RuTils выполняет перегрузку Textile Glyphs в RedCloth, перенося форматирование спецсимволов на Gilenson. Применять как стандартный RedCloth

RuTils::Gilenson::RedClothExtra.new(some_text).to_html

Public Instance Methods

htmlesc(text, mode=0) click to toggle source

Этот метод в RedCloth при наличии Гиленсона становится заглушкой

# File lib/gilenson/redcloth_extra.rb, line 26
def htmlesc(text, mode=0)
  text
end
to_html(*anything) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.