Small steps
$ irb -r wiki_text
irb(main):001:0> WikiText::Parser.new.parse("foobar")
=> "<p>foobar</p>\n"
One small step for man, a giant small step for humankind...
Ah well, from here on the rest should be pretty easy. (How many times have I said that before?)