better check for arrays in markdown plugin