feat(writer): make the header anchor optional