I have used a unicode lookalike for the single quote, as the normal latex way to include it is not supported by katex (`\textquotesingle`).