Fix compatibility with redcarpet 3.1.1

The `header` callback is called with 3 arguments since redcarpet 3.1.0.

This pull request fixes the compatibility issue by adding the `anchor` argument defaulting to `nil`.