Support » Plugin: KaTeX » Not compatible with AMP Pages

  • Resolved examenmalin


    Many pages on my website use Latex equations. But, the KATEX plugin is not compatible with the “Accelerated Mobile Pages (AMP)” version. I am losing a lot of visitors since I integrated the AMP version of the pages on my website because visitors leave my website immediately.
    How do I get the equations to display correctly when a visitor visits the AMP version of my website?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas Churchman


    This is difficult to solve. AMP severely limits JavaScript to ensure performant pages. However, KaTeX uses JavaScript to render TeX math. That is why it does not work out-of-the-box.

    You might want to use MathML instead of TeX for your math markup: AMP has support for MathML blocks.

    It might be possible to get AMP and this plugin to play nicely together through implementing amp-script, but I do not have the time to implement this, and I would rather not start on having to maintain bindings to other plugins. Would you like to pick this up and provide some code for review?

    Thread Starter examenmalin


    Thank you very much for your answer and especially for your responsiveness.
    I fully understand that LATEX uses javascript, that’s why I wanted to know if you had a solution for this.
    But I still want to emphasize the effectiveness of this plugin. I have always been very satisfied with the quality of this plugin.
    I will add a comment with a good mark.

    Plugin Author Thomas Churchman


    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not compatible with AMP Pages’ is closed to new replies.