Rebuilds Ruby DOM elements according to modern HTML5 Text Level Semantics.