module RD::RD2HTMLExtVisitor::NativeInline

index inline => native inline

Constants

Delimiter

Public Instance Methods

apply_to_Index(element, content) click to toggle source
# File lib/rd/rd2html-ext-lib.rb, line 113
def apply_to_Index(element, content)
  %Q[#{Delimiter}#{content}#{Delimiter}]
end

Private Instance Methods

html_body(contents) click to toggle source
Calls superclass method
# 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
meta_char_unescape!(str) click to toggle source
# File lib/rd/rd2html-ext-lib.rb, line 117
def meta_char_unescape!(str)
  str.gsub!(/(<|>|&)/) {
    METACHAR.index($&)
  }
end