Method: Rabbit::Parser::RD::Ext::InlineVerbatim#ext_inline_verb_sup

Defined in:
lib/rabbit/parser/rd/ext/inline-verbatim.rb

#ext_inline_verb_sup(label, source, content, visitor) ⇒ Object



54
55
56
57
58
59
# File 'lib/rabbit/parser/rd/ext/inline-verbatim.rb', line 54

def ext_inline_verb_sup(label, source, content, visitor)
  label = label.to_s
  return nil unless /^sup:(.*)$/ =~ label
  sup_text = apply_inline_markup(visitor, $1)
  Inline.sup(sup_text)
end