Change inline math regex to match contiguous non-whitespace chars.