fix(code-link): ensure titles are calculated correctly