resolves #564 & #936 - constrain subscript & superscript markup

- supscript & superscript only span non-whitespace characters