added support for mdframed environments