On https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-crud-operations/ it seems that the heading symbols do not follow our nesting rules described in https://github.com/mongodb/mongo-ruby-driver/blob/master/docs/nesting-levels.txt.
This page appears to also show depth 1 table of contents, that should be changed to show depth 2 headings.