Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jan 10, 2023
1 parent da3d6bb commit 919209b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myst_parser/mdit_to_docutils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,8 @@ def clean_astext(node: nodes.Element) -> str:
Copied from sphinx.
"""
node = node.deepcopy()
for img in node.findall(nodes.image):
for img in findall(node)(nodes.image):
img["alt"] = ""
for raw in list(node.findall(nodes.raw)):
for raw in list(findall(node)(nodes.raw)):
raw.parent.remove(raw)
return node.astext()

0 comments on commit 919209b

Please sign in to comment.