format heading and sub-note