check for token on markdown preview