Page 1 of 1

MathML rendering breaks when searching

Posted: Tue Jan 07, 2025 1:09 pm
by clara
Hi,

we are using Oxygen to generate our DITA based online help. In some topics, there are formulas written in MathML. They are rendered well ... until you use the WebHelp search function with the search result highlighting and a term that is used in the formula. In this case, the source code of the MathML formula is changed probably, and the rendering breaks apart.

The problem appears in all browsers and with several versions of Oxygen (at least 26 and 27).

Example 1:

Formula without search:
image.png
Formula with search for "drfU" (i.e. the URL is extended by "?hl=net%2Cdrfu"):
image.png

Example 2:

Formula without search:
image.png
Formula with search for "task":
image.png
Formula with search for "drfu":
image.png

Re: MathML rendering breaks when searching

Posted: Thu Jan 09, 2025 2:26 pm
by clara
We could solve it by changing from MathJax script based rendering to native browser MathML support.

Re: MathML rendering breaks when searching

Posted: Thu Jan 09, 2025 4:20 pm
by marius
Hi,

I was just going to say that we were unable to reproduce the issue on our side. Anyway, thanks for the update!