Fix square brackets strip RegEx
Add setLink and publishLink methods

Fixes related tests