allow (and discard) optional argument for \caption
Merge pull request #1336 from aspnes/master

allow (and discard) optional argument for \caption