I am experiencing an issue where a Quarto document does not render equations on the viewer screen, although it works correctly when rendered to PDF or HTML. Previously, the document rendered without problems. Additionally, if I switch to a different working directory, the document renders fine in the viewer. I think I might change some settings that interferes with Quarto. Could somebody help?
Within the problematic working directory, If I create a new quarto document (which has the Quarto and Running Code paragraphs) and add N after the header, it will be replaced by blank (i.e. did not render N) but will show up in the pdf/html file. In other working directory, it is not a problem.
The N disappears before you save the file (meaning before it has an associated file name)? I'm wondering if there might be any associated files already sitting in the directory causing a problem (meaning that if the new file is x.qmd, there might be x.some_extension files already there). Also, when you say that it works if you switch working directories, you mean that switching directory and then creating new file works (as opposed to creating new file in problem directory and then switching that file to a different directory)?
If you create the file in directory B, the N displays correctly from the outset (without any directory changes)?
You can try resetting RStudio's state, but that's a shot in the dark. Otherwise, if the problem is limited to a specific directory (A), you might try looking for a file (maybe a hidden file) that might contain settings screwing up RStudio.