Skip to content

Commit

Permalink
Renamed is_link_label to get_link_label.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderskaplan committed Dec 17, 2022
1 parent ced1455 commit 488ad8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mistletoe/core_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def match_link_image(string, offset, delimiter, root=None):
(-1, -1, title))
match.type = 'Link' if not image else 'Image'
return match
ref = is_link_label(text, root)
ref = get_link_label(text, root)
if ref:
# compact footnote link
if follows(string, offset+1, ']'):
Expand All @@ -203,7 +203,7 @@ def match_link_image(string, offset, delimiter, root=None):
return match
return None
# shortcut footnote link
ref = is_link_label(text, root)
ref = get_link_label(text, root)
if ref:
dest, title = ref
end = offset + 1
Expand Down Expand Up @@ -306,7 +306,7 @@ def match_link_label(string, offset, root=None):
return None


def is_link_label(text, root):
def get_link_label(text, root):
"""
Normalize and look up `text` among the footnotes.
Returns (destination, title) if successful, otherwise None.
Expand Down

0 comments on commit 488ad8b

Please sign in to comment.