This breaks renderers that set the format to xhtml but don't inherit from Doku_Renderer_xhtml like the text renderer (see https://github.com/michitux/dokuwiki-plugin-text/blob/master/renderer.php#L39 for the code).