Joseph Karo, 547: The Laws of Dealing with Death on Hol Hamoed…
“ Paragraph 6 - One does not tear for somebody who died on the holiday, except for relatives that one is obligated to mourn for, scholars, upright people, and people who died in one's presence. For relatives that one is obligated to mourn and for scholars, one tears even not in the presence of the dead, even if one heard of the death during the holiday if the death occurred within thirty days. For an upright person, one only tears if one learned of it between the death and the burial. ”
