lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb in rabbit-0.6.4 vs lib/rabbit/parser/rd/rt/rt2rabbit-lib.rb in rabbit-0.9.0

- old
+ new

@@ -34,10 +34,16 @@ return if targets.empty? block = block_class.new targets.each do |r| row = Element::TableRow.new each_cell(r) do |c| - cell = cell_class.new(c.value) + tree = ::RD::RDTree.new("=begin\n#{c.value}\n=end\n") + if tree.root.children.empty? + elements = [] + else + elements = tree.root.children[0].accept(@rd_visitor).elements + end + cell = cell_class.new(elements) setup_text_align(cell, c.align) row << cell end block << row end