Skip to content

Commit

Permalink
Only look for an algo-heading on the nearest heading.
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Mar 4, 2025
1 parent 35fe0dd commit 15b4447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bikeshed/unsortedJunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def nearestAlgo(el: t.ElementT) -> t.ElementT | None:
for heading in h.relevantHeadings(el):
if isAlgo(heading):
return heading
break
return None

def algoName(el: t.ElementT) -> str | None:
Expand Down

0 comments on commit 15b4447

Please sign in to comment.