Katex in QuickEdit Shows "Katex doesn't work in quirks mode" Error
04:42 24 Jan 2025

I’m trying to use Katex to render mathematical formulas on my website. It works perfectly fine on desktop browsers, but when I open the same page on mobile using Quick Edit, I get an error message: "Katex doesn't work in quirks mode. Make sure your website has a suitable doctype." I’ve already added the declaration, but the error still persists. The page renders correctly in Edge in Mobile.

Here’s a simple test page:





  
  
  Katex Test
  
  
  



  

Katex Test

\(E = mc^2\)

enter image description here

What could be causing this error in QuickEdit? Or any other Android HTML IDEs that support Katex rendering? Any advice or suggestions would be much appreciated.

android html katex