Module | RedCloth::Formatters::Base |
In: |
lib/redcloth/formatters/base.rb
lib/redcloth/formatters/base.rb |
# File lib/redcloth/formatters/base.rb, line 33 33: def inline_redcloth_version(opts) 34: RedCloth::VERSION::STRING 35: end
# File lib/redcloth/formatters/base.rb, line 33 33: def inline_redcloth_version(opts) 34: RedCloth::VERSION::STRING 35: end
# File lib/redcloth/formatters/base.rb, line 44 44: def method_missing(method, opts) 45: opts[:text] || "" 46: end
# File lib/redcloth/formatters/base.rb, line 44 44: def method_missing(method, opts) 45: opts[:text] || "" 46: end
# File lib/redcloth/formatters/base.rb, line 4 4: def pba(opts) 5: opts.delete(:style) if filter_styles 6: opts.delete(:class) if filter_classes 7: opts.delete(:id) if filter_ids 8: 9: atts = '' 10: opts["text-align""text-align"] = opts.delete(:align) 11: opts[:style] += ';' if opts[:style] && (opts[:style][-1..-1] != ';') 12: [:float, "text-align""text-align", "vertical-align""vertical-align"].each do |a| 13: opts[:style] = "#{a}:#{opts[a]};#{opts[:style]}" if opts[a] 14: end 15: ["padding-right""padding-right", "padding-left""padding-left"].each do |a| 16: opts[:style] = "#{a}:#{opts[a]}em;#{opts[:style]}" if opts[a] 17: end 18: [:style, :class, :lang, :id, :colspan, :rowspan, :title, :start, :align].each do |a| 19: atts << " #{a}=\"#{ html_esc(opts[a].to_s, :html_escape_attributes) }\"" if opts[a] 20: end 21: atts 22: end
# File lib/redcloth/formatters/base.rb, line 4 4: def pba(opts) 5: opts.delete(:style) if filter_styles 6: opts.delete(:class) if filter_classes 7: opts.delete(:id) if filter_ids 8: 9: atts = '' 10: opts["text-align""text-align"] = opts.delete(:align) 11: opts[:style] += ';' if opts[:style] && (opts[:style][-1..-1] != ';') 12: [:float, "text-align""text-align", "vertical-align""vertical-align"].each do |a| 13: opts[:style] = "#{a}:#{opts[a]};#{opts[:style]}" if opts[a] 14: end 15: ["padding-right""padding-right", "padding-left""padding-left"].each do |a| 16: opts[:style] = "#{a}:#{opts[a]}em;#{opts[:style]}" if opts[a] 17: end 18: [:style, :class, :lang, :id, :colspan, :rowspan, :title, :start, :align].each do |a| 19: atts << " #{a}=\"#{ html_esc(opts[a].to_s, :html_escape_attributes) }\"" if opts[a] 20: end 21: atts 22: end
# File lib/redcloth/formatters/base.rb, line 29 29: def redcloth_version(opts) 30: p(:text => "#{opts[:prefix]}#{RedCloth::VERSION}") 31: end