I am getting an odd error and despite reinstalling pandoc and miktex is is still occuring.
LaTeX Error: Two \documentclass or \documentstyle commands.
I only have one \documentclass but this error continues.
Here's my code and I'm compiling it with:
pandoc sample_1.md -f gfm -H format.tex -o output.pdf
https://pastebin.com/MTcADABg (.tex file)
https://pastebin.com/BiB6EPKb (.md file)
This script works fine until I add in the \documentclass.
Does anyone know how to fix this error, it is driving me nuts. I've spent ages trying to find a way to fix it.