diff --git a/Documentation/conf.py b/Documentation/conf.py index a5c45df0bd8397..2957e7e535d766 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -143,6 +143,9 @@ def have_command(cmd): if load_imgmath: extensions.append("sphinx.ext.imgmath") math_renderer = 'imgmath' + # workaround Sphinx issue #10944 + if (major, minor) >= (5, 3): + imgmath_embed = True else: math_renderer = 'mathjax'