My Test Post

Hello there. Here’s some code:

1
console.log('hello world');

Bye.

Hi content! This should be red.

Hi content! This should be pink.

g interface Interface impl1 Implementation #1 interface->impl1 impl2 Implementation #2 interface->impl2 impl3 Implementation #2 interface->impl3 something1 something1 impl3->something1 something2 something2 impl3->something2 something3 something3 impl3->something3 something4 something4 impl3->something4

Inclusion by tag

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const line = fileLines[i];
let shouldAppendThisLine = false;
if(state === LOOKING_FOR_START_TAG) {
const match = line.match(startTagRegex);
if(match && match[1] === tagname) {
state = LOOKING_FOR_END_TAG;
}
} else if(state === LOOKING_FOR_END_TAG) {
const match = line.match(endTagRegex);
if(match && match[1] === tagname) {
state = LOOKING_FOR_START_TAG;
} else {
shouldAppendThisLine = true;
}
} else if(state === EXTRACTING_EVERYTHING) {
shouldAppendThisLine = true;
} else {
throw new Error('Unexpected state');
}

if(shouldAppendThisLine) {
const lineIsAnotherStartOrEndTag =
startTagRegex.test(line) || endTagRegex.test(line);
if(lineIsAnotherStartOrEndTag) {
continue;
}

extractedContent += line + '\n';
}

Inclusion by other tag

1
2
3
4
5
6
const match = line.match(endTagRegex);
if(match && match[1] === tagname) {
state = LOOKING_FOR_START_TAG;
} else {
shouldAppendThisLine = true;
}

Complete inclusion

1
2
3
4
5
6
7
8
9
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
.idea
hint-report