The refactored patch did not work so revert it. A new release of recommonmark breaks the docs build so pin it to working version.