We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9318136 commit 21c227eCopy full SHA for 21c227e
lib/codeit.js
@@ -1013,21 +1013,6 @@ class CodeitElement extends HTMLElement {
1013
1014
}
1015
1016
- // if range at start of newline container (at end of line)
1017
- if (container.nodeValue.startsWith('\n') &&
1018
- range.startOffset === 0) {
1019
-
1020
- // check previous element
1021
- if (container.previousSibling.nodeType === 1 && // previous sibling is an element
1022
- container.previousSibling
1023
- .classList.contains(className)) {
1024
1025
- return true;
1026
1027
- }
1028
1029
1030
1031
return false;
1032
1033
0 commit comments