Add support for arbitrary dimensions in TextMark.