Fixed bugs with Markdown integration