I have a rmd file, which include some special characters. Those characters are finely knitted in an html file, but not in a PDF.
pdflatex shows an error message and does not produce the pdf, while xelatex just omit the character (which is even worse).
I have seen that it is a common problem, but I could not find a satisfactory answer.
I have the character ≤ (less equal).
I could manually replace all ≤ with $\le$, but this would reduce the readability of the code.
I would prefer to tell markdown to replace ≤ with $\le$ before knitting in pdf, without having to do it manually, and without having to change the code I work on.