Fix support for trailing markdown in module documentation generator