Skip to content

Commit

Permalink
Update link.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell authored May 7, 2024
1 parent 3fcd475 commit 7a9102c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions markdown_it/rules_inline/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def link(state: StateInline, silent: bool) -> bool:

label = normalizeReference(label)

ref = (
state.env["references"][label] if label in state.env["references"] else None
)
ref = state.env["references"].get(label, None)
if not ref:
state.pos = oldPos
return False
Expand Down

0 comments on commit 7a9102c

Please sign in to comment.