replace compile with link and add transclude