• Resolved Steeven

    (@steeven)


    Dear Katex developers

    I have just realised a terrible bug that prevents me entirely from using your plugin for math on my site.

    On this page as an example: https://explaint.dk/courses/kraefter-og-lineaer-dynamik/ half-way down the page there are four tabs with tables inside. In these tables there is latex syntax written within the [katex] shortcode tags.

    They render perfectly and fast when I am logged in. But they don’t render at all when I’m logged out. I realised this when viewing the page in incognito mode (Microsoft Edge).

    The page is a course page via Learndash with tables from TablePress. I have tried the default wordpress theme and I’ve had all other plugins than Learndash, TablePress and Katex deactivated with no change.

    Is the Katex plugin simply incompatible with either TablePress or Learndash?

    Regards

    • This topic was modified 4 years, 1 month ago by Steeven.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Steeven

    (@steeven)

    A follow-up with a fix – not the nicest fix, but usable.

    It seems to be an issue with the table. Possibly the katex shortcodes are rendered before the table shortcodes. But only sometimes – refreshing repeatedly will sometimes show rendered katex math, most mostly it doesn’t render.

    If I place a katex shortcode on the page outside of the table, such as [katex] [/katex], then katex is rendered fine on the entire page, also inside the tables, every time. This fix is working. I will mark this issue as resolved when a support-agent has seen this so that you are aware of the issue.

    • This reply was modified 4 years, 1 month ago by Steeven.
    • This reply was modified 4 years, 1 month ago by Steeven.
    Plugin Author Thomas Churchman

    (@beskhue)

    Thank you for the bug report.

    It sounds like your issue was caused by KaTeX not detecting that it was being used on the page, and did not load the KaTeX JavaScript and CSS assets. I’ve released version 2.1.2 that improves compatibility due to asset loading.

    Thread Starter Steeven

    (@steeven)

    Hi @beskhue, that sounds great. Thank you vey much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Katex does not render in incognito (not-logged-in) mode’ is closed to new replies.