• Resolved bigfatfrodo

    (@bigfatfrodo)


    Hi,

    I have the Katex plugin on my website and displaying some math formulas with it. When enabling WP Fastest Cache, some of the Katex blocks look weird. I narrowed it down to the way the Katex “code” is changed in the cached version as opposed to the “live” one.

    With WPFC Disabled, the HTML source looks like this (correct):
    <div class=”wp-block-katex-display-block katex-eq” data-katex-display=”true”>

    S = \sqrt[]{(p-a)\cdot(p-b)\cdot(p-c)\cdot(p-d)}\\\;\\p = \frac{a+b+c+d}{2}

    </div>

    With WPFC Enabled, in the cached HTML source it looks like some backslash processing took place before the p = \frac area:
    <div class=”wp-block-katex-display-block katex-eq” data-katex-display=”true”>

    S = \sqrt[]{(p-a)\cdot(p-b)\cdot(p-c)\cdot(p-d)}\\;\p = \frac{a+b+c+d}{2}

    </div>

    The result is that the instead of just displaying ‘p =’, the cached version shows ‘;\p’. This happens throughout the site, being rather disturbing.

    Thanks,
    BFF

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

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WPFC + Katex issue with backslashes’ is closed to new replies.