fix issue with notes on last slide of external markdown #589