Instead of checking whether a file is a page to decide strip, check whether it is in markdown