KaTeX's makeVList function has trouble with tall items. Given, say, a tall image, it will locate the top of the image no higher than the top of the text line box created by the fontSizeEnsurer. This location will be in conflict with the height and depth passed to makeVList if the tall item is taller than maxFontSize.
Work-arounds tried so far include: (1) passing a large value of maxFontSize to makeVList, as in PR #744, and (2) trying a hand-written adjustment to the tall item's location, as in the \fbox part of PR #670.
(1) can push the line downward and create large gaps above the math.
(2) will not work properly if there is a font size change inside the \fbox.
A more general solution would be helpful.
KaTeX's
makeVListfunction has trouble with tall items. Given, say, a tall image, it will locate the top of the image no higher than the top of the text line box created by thefontSizeEnsurer. This location will be in conflict with theheightanddepthpassed tomakeVListif the tall item is taller thanmaxFontSize.Work-arounds tried so far include: (1) passing a large value of
maxFontSizetomakeVList, as in PR #744, and (2) trying a hand-written adjustment to the tall item's location, as in the\fboxpart of PR #670.(1) can push the line downward and create large gaps above the math.
(2) will not work properly if there is a font size change inside the
\fbox.A more general solution would be helpful.