Based on https://github.com/emersion/mako/commit/805663cc76e0
Based on https://github.com/emersion/mako/commit/67f2ed1862a9