MathML rendering breaks when searching

Post here questions and problems related to editing and publishing DITA content.
clara
Posts: 2
Joined: Tue Jan 07, 2025 12:51 pm

MathML rendering breaks when searching

Post 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
image.png (2.64 KiB) Viewed 240 times
Formula with search for "drfU" (i.e. the URL is extended by "?hl=net%2Cdrfu"):
image.png
image.png (3.24 KiB) Viewed 240 times

Example 2:

Formula without search:
image.png
image.png (2.69 KiB) Viewed 240 times
Formula with search for "task":
image.png
image.png (3.94 KiB) Viewed 240 times
Formula with search for "drfu":
image.png
image.png (4.27 KiB) Viewed 240 times
clara
Posts: 2
Joined: Tue Jan 07, 2025 12:51 pm

Re: MathML rendering breaks when searching

Post by clara »

We could solve it by changing from MathJax script based rendering to native browser MathML support.
marius
Posts: 47
Joined: Thu Mar 05, 2009 11:44 am

Re: MathML rendering breaks when searching

Post 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!
Marius Ciolacu
Syncro Soft / Oxygen XML
Post Reply