How can I make pandoc use latex newif logic so that latex code that pandoc can't handle is not read?