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

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

#apply_inline_markup(visitor, text) ⇒ Object



26
27
28
29
# File 'lib/rabbit/parser/rd/ext/inline-verbatim.rb', line 26

def apply_inline_markup(visitor, text)
  tree = ::RD::RDTree.new("=begin\n#{text}\n=end\n")
  TextContainer.new(tree.root.children[0].accept(visitor).elements)
end