rescuing exceptions in markdown parsing