Mathjax couldn't render the Bengali/Bangla Font correctly

The issue is the font gets broken when it renders any Bengali/Bangla word.

Step to produce:

  • $$\text{হেল}$$ was given as an input.
    হেল means and pronounce as hello.

Result:

  • হ ে ল
    Actual Result

Expected Result:

  • হেল

Solution:

The issue was created on mathjax repository.
This solution is provided by One of the mathjax dev team Davide Cervone

You need to configure MathJax to use the surrounding font for text elements, and then put your Bangla text inside

<script>
MathJax = {
  chtml: {
    mtextInheritFont: true
  }
}
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

It looks like in app://obsidian.md/lib/mathjax/tex-chtml-full.js the mtextFontInherit is set to false.

Thanks in advance

1 Like

Man why this is not fixed yet. I had to switch to Notion just for this reason.