Add linkattrs to properly resolve attributes inside links