# MathJax issue in hugo

If using brackets in title of article, and MathJax was enabled,

+++
title= "[Math]Finding the shortest distance between two lines in 3D"
date= "2019-09-16T16:46:02+08:00"
mathjax= ["ture"]
+++


then characters in brackets would be zoomed in, as shown in following pic:

but it works fine without brackets in title:

+++
title= "(Math)Finding the shortest distance between two lines in 3D"
date= "2019-09-16T16:46:02+08:00"
mathjax= ["ture"]
+++


So it’s there any way to let brackets and MathJax work fine?

Hi!

I guess we need some information: What theme are you using and how did you implement MathJaX? (But I am not an expert here.)

BTW: Just tested a title with brackets using KaTeX, and it works fine. If you are using your own theme you could consider using KaTex. It seems a lot quicker. Here is a Hugo KaTeX example.

1 Like

KaTex worked, thanks a lot Grob~