Make mapStyles merge adjacent equal-styled spans.

Resolves #50.