require 'wparser/break' require 'wparser/inline/inline' require 'wparser/block/block' class Parser def parse text text = Break.parse(text) text = Inline.parse(text) text = Block.parse(text) #html = text.to_html text end end