Fix assertion crash in markdown parser. Closes #62