(3.2) Fix critical error with pelican --markup argument

If the --markup argument is given, then the following error occurs:
   CRITICAL: endswith first arg must be str, unicode, or tuple, not list
    
To fix the error, cast the list to a tuple before calling 'endswith'.