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

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

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



47
48
49
50
51
52
# File 'lib/rabbit/parser/rd/ext/inline-verbatim.rb', line 47

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