# File lib/ritex.rb, line 57
  def parse s, opts={}
    nowrap = opts[:nowrap]
    display = opts[:display]
    @lex = Lexer.new self, s
    r = yyparse @lex, :lex
    r = markup r, (display ? :displaymath : :math) unless nowrap
    r = raw_blob_to_string(r) if @format == :raw
    r
  end