lexicon_filter fix for escaped options

Fixes #1703. Also fixes short and long options markup in synopsis when
directly following a '(' or '[' character.