Class: Gilenson::MarukuExtra
- Inherits:
-
Maruku
- Object
- Maruku
- Gilenson::MarukuExtra
- Defined in:
- lib/extras/maruku_extra.rb
Overview
Maruku с поддержкой Gilenson
Instance Method Summary collapse
Instance Method Details
#to_html(*anything) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/extras/maruku_extra.rb', line 4 def to_html(*anything) suspended = super # 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 |