mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
Pass displayMode when rendering math preview (#35165)
GitOrigin-RevId: ea80dcdd6620ffbc3066aaa3f27b751b81d87ba6
This commit is contained in:
@@ -129,7 +129,7 @@ const renderMath = async (
|
||||
}
|
||||
|
||||
const math = await MathJax.tex2svgPromise(content, {
|
||||
...MathJax.getMetricsFor(element),
|
||||
...MathJax.getMetricsFor(element, displayMode),
|
||||
display: displayMode,
|
||||
})
|
||||
element.textContent = ''
|
||||
|
||||
Reference in New Issue
Block a user