Remap Markdown files to directories.