The {{overset}}, {{underset}}, {{overunderset}} templates work incorrectly with the "→", "←" and "⇌" characters (e.g. in chemical reactions)

edit

The {{overset}}, {{underset}}, {{overunderset}} templates work incorrectly with the "→", "←", "⇌" and similar chemical reaction arrow characters when representing chemical reactions, making those three templates unusable in chemistry. For example

:{{chem2|CrCl3}} {{overunderset|→|CO|Reductant}} {{chem2|Cr(CO)6}}

gives

CrCl3 COReductant Cr(CO)6

As you can see, the arrow is too short. It should be as long as the over and underset text! Although there is no such bug in the <chem> element so one can say "Well well well! Why you don't use the <chem> element which is already designed for chemistry???", or "Why you don't use the <math> element???". You are right, but still, I wuld like the bug to be corrected in the {{overset}}, {{underset}}, {{overunderset}} templates as well. Can someone correct this annoying bug and improve those three templates, to work fine just as the <chem> and <math>elements? Bernardirfan (talk) 15:59, 18 October 2023 (UTC)Reply