Skip to content

Commit

Permalink
⬆️ UPGRADE: markdown-it-py v0.6.2 (#306)
Browse files Browse the repository at this point in the history
In particular, this fixes missing line mappings for table rows and their children
  • Loading branch information
chrisjsewell committed Feb 6, 2021
1 parent 702a982 commit 86df2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions myst_parser/docutils_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 86df2ea

Please sign in to comment.