-
Couldn't load subscription status.
- Fork 15
Testing show-whitespace
#18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: default-a
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces
function() {}
function () {}
function() {}
function () {}Tabs
function() {}
function () {}
function() {}
function () {}Mixed
function() {}
function () {}
function() {}
function () {}Inlined
Lines 19 to 28 in d773f59
| ```md | |
| function() {} | |
| function () {} | |
| # Test URLs | |
| https://github.com/fregante/github-sandbox/issues/345 | |
| ``` |
Real code
function showWhiteSpacesOn(line: Element): void {
const shouldAvoidSurroundingSpaces = Boolean(line.closest('.blob-wrapper-embedded')); // #2285
const textNodesOnThisLine = getTextNodes(line);
for (const [nodeIndex, textNode] of textNodesOnThisLine.entries()) {
// `textContent` reads must be cached #2737
let text = textNode.textContent!;
if (text.length > 1000) { // #5092
continue;
}|
|
||
| ## Usage example | ||
|
|
||
| 1. I open an issue named `Testing in-title #1 issue references` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces
function() {}
function () {}
function() {}
function () {}Tabs
function() {}
function () {}
function() {}
function () {}Mixed
function() {}
function () {}
function() {}
function () {}Inlined
Lines 19 to 28 in d773f59
| ```md | |
| function() {} | |
| function () {} | |
| # Test URLs | |
| https://github.com/fregante/github-sandbox/issues/345 | |
| ``` |
Real code
function showWhiteSpacesOn(line: Element): void {
const shouldAvoidSurroundingSpaces = Boolean(line.closest('.blob-wrapper-embedded')); // #2285
const textNodesOnThisLine = getTextNodes(line);
for (const [nodeIndex, textNode] of textNodesOnThisLine.entries()) {
// `textContent` reads must be cached #2737
let text = textNode.textContent!;
if (text.length > 1000) { // #5092
continue;
}
tab-size#19Spaces
Tabs
Mixed
Inlined
sandbox/README.md
Lines 19 to 28 in d773f59
Real code