Added link tag handling so that links are replaced by labels that link points to. Under testing.
Added code in preparation of format handling. Fails. Some fixes.