Break up links with nested formating (rebased)
Created by: riyad
Breaks up "block links" to be simpler and contain less "structure" (i.e. HTML) so that the structure is outside and the links encapsulate only the text.
Rebased #1130. This is also in preparation for changes regarding #527.