Thanks for responding. How much would it cost to get that \newif logic implemented?
How can I make pandoc use latex newif logic so that latex code that pandoc can't handle is not read?