Updated code to match specification version 0.10

See https://github.com/jgm/CommonMark/issues/145