Markdown parser in Ruby