Purge function to generate markdown to other module.