1

I'm trying to write python code that can convert an rmd file to html. Rmd was not listed as one of the built in formats for pypandoc, so I tried to use regular markdown for the format parameter.

output = pypandoc.convert_file(
            f"{file_path}/{file}", 'html', format = 'markdown', outputfile= f"{file_path}/{file}.html", encoding = 'utf-8')

But I get the error that it could not be converted "[WARNING] Could not convert TeX math site."

Is there another way to convert the file without changing the TeX math?

pillow
  • 23
  • 4

0 Answers0