Mathjax couldn’t render the Local Language Font correctly

The issue is the font gets broken when it renders any Bengali/Bangla/Hindi 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