Fix problems after updated markdown engine