Skip to content

Commit

Permalink
Split Link/Image handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Sep 15, 2023
1 parent 5aa33fc commit 611357b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ethereum_spec_tools/docc.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ def _markdown_hash(self, node: mistletoe.MarkdownNode) -> int:
result = ()
case spans.RawText | spans.HTMLSpan:
result = (token.content,)
case spans.Image | spans.Link:
case spans.Link:
result = (token.target, token.title, token.label)
case spans.Image:
result = (token.src, token.title, token.label)
case blocks.Heading | blocks.SetextHeading:
result = (token.level,)
Expand Down

0 comments on commit 611357b

Please sign in to comment.