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

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

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



68
69
70
71
72
# File 'lib/rabbit/parser/rd/ext/inline-verbatim.rb', line 68

def ext_inline_verb_lang(label, source, content, visitor)
  label = label.to_s
  return nil unless /^lang:([a-z]{2,2}):(.*)$/ =~ label
  Inline.lang($1, apply_inline_markup(visitor, $2))
end