You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
line 11
I get:
The markdown I used for the code fenching is just backticks: screenshot
For the above block, the numberOfLines is 12 instead of 11,
and that's because it takes in the produced innerHTML the closing </code> as a separate line:
I've noticed in 'GitHub Collapse In Comment' that the lines count value appears to be +1 the expected one.
The relevant line in the script:
GitHub-userscripts/github-collapse-in-comment.user.js
Line 126 in af1d51d
For the following block:
I get:
The markdown I used for the code fenching is just backticks: screenshot
For the above block, the
numberOfLines
is 12 instead of 11,and that's because it takes in the produced innerHTML the closing
</code>
as a separate line:screenshot
@Mottie, maybe we should add something like
.replace('</code>', '')
right after.split("\n")
?PS. Using latest Tampermonkey/Violentmonkey in fresh profile of Chrome 91.
The text was updated successfully, but these errors were encountered: