Skip to content

Commit 996655c

Browse files
committed
Replaced id to name #7
1 parent 883ba5d commit 996655c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/highlightjs-line-numbers.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/highlightjs-line-numbers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@
7979

8080
function getLineWithLink (i, blockName) {
8181
var id = blockName + '_l' + i;
82-
return '<a href="#' + id + '" id="' + id + '">' + i + '</span>\n'
82+
return '<a href="#' + id + '" name="' + id + '">' + i + '</span>\n'
8383
}
8484
}(window));

0 commit comments

Comments
 (0)