Fix to heading regular expression #201

See the issue for description.