Fixing a bug in getting markdowns