Files
freeCodeCamp/tools/challenge-parser/parser/__fixtures__/ast-with-quizzes.json

1308 lines
25 KiB
JSON

{
"type": "root",
"children": [
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "--quizzes--",
"position": {
"start": {
"line": 1,
"column": 3,
"offset": 2
},
"end": {
"line": 1,
"column": 14,
"offset": 13
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 14,
"offset": 13
}
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--quiz--",
"position": {
"start": {
"line": 3,
"column": 4,
"offset": 18
},
"end": {
"line": 3,
"column": 12,
"offset": 26
}
}
}
],
"position": {
"start": {
"line": 3,
"column": 1,
"offset": 15
},
"end": {
"line": 3,
"column": 12,
"offset": 26
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--question--",
"position": {
"start": {
"line": 5,
"column": 5,
"offset": 32
},
"end": {
"line": 5,
"column": 17,
"offset": 44
}
}
}
],
"position": {
"start": {
"line": 5,
"column": 1,
"offset": 28
},
"end": {
"line": 5,
"column": 17,
"offset": 44
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 1",
"position": {
"start": {
"line": 7,
"column": 1,
"offset": 46
},
"end": {
"line": 7,
"column": 19,
"offset": 64
}
}
}
],
"position": {
"start": {
"line": 7,
"column": 1,
"offset": 46
},
"end": {
"line": 7,
"column": 19,
"offset": 64
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--distractors--",
"position": {
"start": {
"line": 9,
"column": 5,
"offset": 70
},
"end": {
"line": 9,
"column": 20,
"offset": 85
}
}
}
],
"position": {
"start": {
"line": 9,
"column": 1,
"offset": 66
},
"end": {
"line": 9,
"column": 20,
"offset": 85
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 1, distractor 1",
"position": {
"start": {
"line": 11,
"column": 1,
"offset": 87
},
"end": {
"line": 11,
"column": 33,
"offset": 119
}
}
}
],
"position": {
"start": {
"line": 11,
"column": 1,
"offset": 87
},
"end": {
"line": 11,
"column": 33,
"offset": 119
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 13,
"column": 1,
"offset": 121
},
"end": {
"line": 13,
"column": 4,
"offset": 124
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 1, distractor 2",
"position": {
"start": {
"line": 15,
"column": 1,
"offset": 126
},
"end": {
"line": 15,
"column": 33,
"offset": 158
}
}
}
],
"position": {
"start": {
"line": 15,
"column": 1,
"offset": 126
},
"end": {
"line": 15,
"column": 33,
"offset": 158
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 17,
"column": 1,
"offset": 160
},
"end": {
"line": 17,
"column": 4,
"offset": 163
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 1, distractor 3",
"position": {
"start": {
"line": 19,
"column": 1,
"offset": 165
},
"end": {
"line": 19,
"column": 33,
"offset": 197
}
}
}
],
"position": {
"start": {
"line": 19,
"column": 1,
"offset": 165
},
"end": {
"line": 19,
"column": 33,
"offset": 197
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--answer--",
"position": {
"start": {
"line": 21,
"column": 5,
"offset": 203
},
"end": {
"line": 21,
"column": 15,
"offset": 213
}
}
}
],
"position": {
"start": {
"line": 21,
"column": 1,
"offset": 199
},
"end": {
"line": 21,
"column": 15,
"offset": 213
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 1, answer",
"position": {
"start": {
"line": 23,
"column": 1,
"offset": 215
},
"end": {
"line": 23,
"column": 27,
"offset": 241
}
}
}
],
"position": {
"start": {
"line": 23,
"column": 1,
"offset": 215
},
"end": {
"line": 23,
"column": 27,
"offset": 241
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--question--",
"position": {
"start": {
"line": 25,
"column": 5,
"offset": 247
},
"end": {
"line": 25,
"column": 17,
"offset": 259
}
}
}
],
"position": {
"start": {
"line": 25,
"column": 1,
"offset": 243
},
"end": {
"line": 25,
"column": 17,
"offset": 259
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 2",
"position": {
"start": {
"line": 27,
"column": 1,
"offset": 261
},
"end": {
"line": 27,
"column": 19,
"offset": 279
}
}
}
],
"position": {
"start": {
"line": 27,
"column": 1,
"offset": 261
},
"end": {
"line": 27,
"column": 19,
"offset": 279
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--distractors--",
"position": {
"start": {
"line": 29,
"column": 5,
"offset": 285
},
"end": {
"line": 29,
"column": 20,
"offset": 300
}
}
}
],
"position": {
"start": {
"line": 29,
"column": 1,
"offset": 281
},
"end": {
"line": 29,
"column": 20,
"offset": 300
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 2, distractor 1",
"position": {
"start": {
"line": 31,
"column": 1,
"offset": 302
},
"end": {
"line": 31,
"column": 33,
"offset": 334
}
}
}
],
"position": {
"start": {
"line": 31,
"column": 1,
"offset": 302
},
"end": {
"line": 31,
"column": 33,
"offset": 334
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 33,
"column": 1,
"offset": 336
},
"end": {
"line": 33,
"column": 4,
"offset": 339
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 2, distractor 2",
"position": {
"start": {
"line": 35,
"column": 1,
"offset": 341
},
"end": {
"line": 35,
"column": 33,
"offset": 373
}
}
}
],
"position": {
"start": {
"line": 35,
"column": 1,
"offset": 341
},
"end": {
"line": 35,
"column": 33,
"offset": 373
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 37,
"column": 1,
"offset": 375
},
"end": {
"line": 37,
"column": 4,
"offset": 378
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 2, distractor 3",
"position": {
"start": {
"line": 39,
"column": 1,
"offset": 380
},
"end": {
"line": 39,
"column": 33,
"offset": 412
}
}
}
],
"position": {
"start": {
"line": 39,
"column": 1,
"offset": 380
},
"end": {
"line": 39,
"column": 33,
"offset": 412
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--answer--",
"position": {
"start": {
"line": 41,
"column": 5,
"offset": 418
},
"end": {
"line": 41,
"column": 15,
"offset": 428
}
}
}
],
"position": {
"start": {
"line": 41,
"column": 1,
"offset": 414
},
"end": {
"line": 41,
"column": 15,
"offset": 428
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 1, question 2, answer",
"position": {
"start": {
"line": 43,
"column": 1,
"offset": 430
},
"end": {
"line": 43,
"column": 27,
"offset": 456
}
}
}
],
"position": {
"start": {
"line": 43,
"column": 1,
"offset": 430
},
"end": {
"line": 43,
"column": 27,
"offset": 456
}
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--quiz--",
"position": {
"start": {
"line": 45,
"column": 4,
"offset": 461
},
"end": {
"line": 45,
"column": 12,
"offset": 469
}
}
}
],
"position": {
"start": {
"line": 45,
"column": 1,
"offset": 458
},
"end": {
"line": 45,
"column": 12,
"offset": 469
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--question--",
"position": {
"start": {
"line": 47,
"column": 5,
"offset": 475
},
"end": {
"line": 47,
"column": 17,
"offset": 487
}
}
}
],
"position": {
"start": {
"line": 47,
"column": 1,
"offset": 471
},
"end": {
"line": 47,
"column": 17,
"offset": 487
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 1",
"position": {
"start": {
"line": 49,
"column": 1,
"offset": 489
},
"end": {
"line": 49,
"column": 19,
"offset": 507
}
}
}
],
"position": {
"start": {
"line": 49,
"column": 1,
"offset": 489
},
"end": {
"line": 49,
"column": 19,
"offset": 507
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--distractors--",
"position": {
"start": {
"line": 51,
"column": 5,
"offset": 513
},
"end": {
"line": 51,
"column": 20,
"offset": 528
}
}
}
],
"position": {
"start": {
"line": 51,
"column": 1,
"offset": 509
},
"end": {
"line": 51,
"column": 20,
"offset": 528
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 1, distractor 1",
"position": {
"start": {
"line": 53,
"column": 1,
"offset": 530
},
"end": {
"line": 53,
"column": 33,
"offset": 562
}
}
}
],
"position": {
"start": {
"line": 53,
"column": 1,
"offset": 530
},
"end": {
"line": 53,
"column": 33,
"offset": 562
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 55,
"column": 1,
"offset": 564
},
"end": {
"line": 55,
"column": 4,
"offset": 567
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 1, distractor 2",
"position": {
"start": {
"line": 57,
"column": 1,
"offset": 569
},
"end": {
"line": 57,
"column": 33,
"offset": 601
}
}
}
],
"position": {
"start": {
"line": 57,
"column": 1,
"offset": 569
},
"end": {
"line": 57,
"column": 33,
"offset": 601
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 59,
"column": 1,
"offset": 603
},
"end": {
"line": 59,
"column": 4,
"offset": 606
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 1, distractor 3",
"position": {
"start": {
"line": 61,
"column": 1,
"offset": 608
},
"end": {
"line": 61,
"column": 33,
"offset": 640
}
}
}
],
"position": {
"start": {
"line": 61,
"column": 1,
"offset": 608
},
"end": {
"line": 61,
"column": 33,
"offset": 640
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--answer--",
"position": {
"start": {
"line": 63,
"column": 5,
"offset": 646
},
"end": {
"line": 63,
"column": 15,
"offset": 656
}
}
}
],
"position": {
"start": {
"line": 63,
"column": 1,
"offset": 642
},
"end": {
"line": 63,
"column": 15,
"offset": 656
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 1, answer",
"position": {
"start": {
"line": 65,
"column": 1,
"offset": 658
},
"end": {
"line": 65,
"column": 27,
"offset": 684
}
}
}
],
"position": {
"start": {
"line": 65,
"column": 1,
"offset": 658
},
"end": {
"line": 65,
"column": 27,
"offset": 684
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--question--",
"position": {
"start": {
"line": 67,
"column": 5,
"offset": 690
},
"end": {
"line": 67,
"column": 17,
"offset": 702
}
}
}
],
"position": {
"start": {
"line": 67,
"column": 1,
"offset": 686
},
"end": {
"line": 67,
"column": 17,
"offset": 702
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 2",
"position": {
"start": {
"line": 69,
"column": 1,
"offset": 704
},
"end": {
"line": 69,
"column": 19,
"offset": 722
}
}
}
],
"position": {
"start": {
"line": 69,
"column": 1,
"offset": 704
},
"end": {
"line": 69,
"column": 19,
"offset": 722
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--distractors--",
"position": {
"start": {
"line": 71,
"column": 5,
"offset": 728
},
"end": {
"line": 71,
"column": 20,
"offset": 743
}
}
}
],
"position": {
"start": {
"line": 71,
"column": 1,
"offset": 724
},
"end": {
"line": 71,
"column": 20,
"offset": 743
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 2, distractor 1",
"position": {
"start": {
"line": 73,
"column": 1,
"offset": 745
},
"end": {
"line": 73,
"column": 33,
"offset": 777
}
}
}
],
"position": {
"start": {
"line": 73,
"column": 1,
"offset": 745
},
"end": {
"line": 73,
"column": 33,
"offset": 777
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 75,
"column": 1,
"offset": 779
},
"end": {
"line": 75,
"column": 4,
"offset": 782
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 2, distractor 2",
"position": {
"start": {
"line": 77,
"column": 1,
"offset": 784
},
"end": {
"line": 77,
"column": 33,
"offset": 816
}
}
}
],
"position": {
"start": {
"line": 77,
"column": 1,
"offset": 784
},
"end": {
"line": 77,
"column": 33,
"offset": 816
}
}
},
{
"type": "thematicBreak",
"position": {
"start": {
"line": 79,
"column": 1,
"offset": 818
},
"end": {
"line": 79,
"column": 4,
"offset": 821
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 2, distractor 3",
"position": {
"start": {
"line": 81,
"column": 1,
"offset": 823
},
"end": {
"line": 81,
"column": 33,
"offset": 855
}
}
}
],
"position": {
"start": {
"line": 81,
"column": 1,
"offset": 823
},
"end": {
"line": 81,
"column": 33,
"offset": 855
}
}
},
{
"type": "heading",
"depth": 3,
"children": [
{
"type": "text",
"value": "--answer--",
"position": {
"start": {
"line": 83,
"column": 5,
"offset": 861
},
"end": {
"line": 83,
"column": 15,
"offset": 871
}
}
}
],
"position": {
"start": {
"line": 83,
"column": 1,
"offset": 857
},
"end": {
"line": 83,
"column": 15,
"offset": 871
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Quiz 2, question 2, answer",
"position": {
"start": {
"line": 85,
"column": 1,
"offset": 873
},
"end": {
"line": 85,
"column": 27,
"offset": 899
}
}
}
],
"position": {
"start": {
"line": 85,
"column": 1,
"offset": 873
},
"end": {
"line": 85,
"column": 27,
"offset": 899
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 86,
"column": 1,
"offset": 900
}
}
}