diff --git a/myst_parser/docutils_renderer.py b/myst_parser/docutils_renderer.py index 3d01ba85..2749eaf1 100644 --- a/myst_parser/docutils_renderer.py +++ b/myst_parser/docutils_renderer.py @@ -1041,10 +1041,7 @@ def render_substitution(self, token, inline: bool): otherwise parse to nodes with all syntax rules. """ - - # TODO token.map was None when substituting an image in a table - # (should be fixed: https://github.com/executablebooks/markdown-it-py/pull/109) - position = token.map[0] if token.map else 9999 + position = token.map[0] # front-matter substitutions take priority over config ones variable_context = { diff --git a/setup.py b/setup.py index c98c0fe7..ec2e07c0 100644 --- a/setup.py +++ b/setup.py @@ -35,8 +35,8 @@ keywords="markdown lexer parser development docutils sphinx", python_requires=">=3.6", install_requires=[ - "markdown-it-py~=0.6.0", - "mdit-py-plugins~=0.2.4", + "markdown-it-py~=0.6.2", + "mdit-py-plugins~=0.2.5", "pyyaml", "jinja2", # required for substitutions, but let sphinx choose version "docutils>=0.15",