fix relative .md links + format History headers