Collected docutils_extensions code