Greek letters and equations are duplicated

Hi, in articles I push to kindle the equations and greek letters tend to be duplicated.
For example, on https://christophm.github.io/interpretable-ml-book/anchors.html,

EDx(z|A)[1f(x)=f(z)]≥τ,A(x)=1 becomes:

EDx(z|A)[1f(x)=f(z)]≥τ,A(x)=1EDx(z|A)[1f(x)=f(z)]≥τ,A(x)=1

The issue occurs both on the kindle and in the Push to Kindle preview.

Thanks!

Thanks for reporting this. It looks like the MathJax embedding they use produces two blocks that look the same to me. The second one has a class attribute ‘MJX_Assistive_MathML’ and is hidden with CSS using a combination of height: 1px and position:absolute. So your browser effectively hides it from you, but Push to Kindle sees two blocks that should be rendered.

In such cases we usually apply custom rules to remove the second instances that cause this kind of duplication in the final result. I’ll try and do that for github.io articles. Will update again here when that’s done.

1 Like

Oh that’s fascinating! I wonder why they do that…
Anyway, I appreciate your taking an interest in finding a workaround.