Allow both underline and overline to be present

Useful for e.g. [ReST simple tables](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#simple-tables).