URL error when using KaTex as page header

I built my webpage using Notion and Cloudflare. The site has no issues other than on the two pages that I am using KaTeX as a page header it is leaking through as part of the URL on both Notion and on my custom domain. Is there a way to fix this? Image shows blog page with url error.

Hi @deveyed,

Does this issue still happen if you pause Cloudflare?

You can pause Cloudflare from the Overview tab of the Cloudflare Dashboard, bottom right under Advanced Actions.
If the issue persists after Cloudflare has been paused, it means that there is an issue with your origin, Cloudflare is only operating as your DNS provider while it is paused.