search for a .md file first if the file ends in .html