cleanup markdownToCourse