Skip to content

Commit

Permalink
Fix highlight lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jan 10, 2025
1 parent 760e56b commit 8363af6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymdownx/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,12 @@ def _format_custom_line(self, m):
# wrap the gutter number in the future with a highlight class.
# The decision to do this has still not be made.

lnum = m.group(4) if not m.group(4).rstrip() else m.group(4)

return (
m.group(1) +
m.group(2) +
'"' +
m.group(3) +
' data-linenos="' + lnum + ' ">' +
' data-linenos="' + m.group(4) + ' ">' +
m.group(5)
)

Expand Down

0 comments on commit 8363af6

Please sign in to comment.