Port pagure's markdown extension to the new API
It seems that markdown has now a new way to register extensions and
it throws a number of deprecation warnings on recent version to
invite program to migrate. So this commit ports pagure to this new
API.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>