Ignored rubymine .idea directory.
Added tex escaping for [].
Fixed tests.