(refs #585) Fix issue in markdown preview