Fix a bug in the markup parser.