Modified to generate markdown files instead of html