module RD::RD2HTMLExtVisitor::NativeInline
index inline => native inline
Constants
- Delimiter
Public Instance Methods
Source
# File lib/rd/rd2html-ext-lib.rb, line 113 def apply_to_Index(element, content) %Q[#{Delimiter}#{content}#{Delimiter}] end
Private Instance Methods
Source
# File lib/rd/rd2html-ext-lib.rb, line 101 def html_body(contents) html = super a = html.split(Delimiter) a.each_with_index do |s, i| if i % 2 == 1 meta_char_unescape!(s) end end a.join end
Calls superclass method
Source
# File lib/rd/rd2html-ext-lib.rb, line 117 def meta_char_unescape!(str) str.gsub!(/(<|>|&)/) { METACHAR.index($&) } end