require 'wparser/inline/heading' require 'wparser/inline/strong' require 'wparser/inline/italic' require 'wparser/inline/underLine' require 'wparser/inline/deleted' require 'wparser/inline/http' module Inline include Heading include Strong include Italic include UnderLine include Deleted include Http def parse text parse_text = "" text.each do |line| parse_line = Heading.parse(line) parse_line = Strong.parse(parse_line) parse_line = Italic.parse(parse_line) parse_line = UnderLine.parse(parse_line) parse_line = Deleted.parse(parse_line) parse_text << parse_line end parse_text = Http.parse(parse_text) parse_text end module_function :parse end