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

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

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



80
81
82
83
84
85
86
87
88
89
90
# File 'lib/rabbit/parser/rd/ext/inline-verbatim.rb', line 80

def ext_inline_verb_tag(label, source, content, visitor)
  label = label.to_s
  return nil unless /^tag:(.+?)(?::(.+))?$/ =~ label
  name = $1
  content = $2
  if content
    CustomTag.new(name, apply_inline_markup(visitor, content))
  else
    CustomTag.new(name)
  end
end