diff --git a/pelican/plugins/render_math/math.py b/pelican/plugins/render_math/math.py index 3fec428..5d70028 100644 --- a/pelican/plugins/render_math/math.py +++ b/pelican/plugins/render_math/math.py @@ -265,11 +265,11 @@ def configure_typogrify(pelicanobj, mathjax_settings): return try: - from distutils.version import LooseVersion + from packaging.version import Version import typogrify - if LooseVersion(typogrify.__version__) < LooseVersion("2.0.7"): + if Version(typogrify.__version__) < Version("2.0.7"): raise TypeError("Incorrect version of Typogrify") from typogrify.filters import typogrify