Oliver Eyton-Williams 0bd52f8bd1
Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

396 lines
7.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`between-headings should match the hints snapshot 1`] = `
Array [
Object {
"children": Array [
Object {
"position": Object {
"end": Object {
"column": 11,
"line": 19,
"offset": 142,
},
"start": Object {
"column": 1,
"line": 19,
"offset": 132,
},
},
"type": "text",
"value": "First hint",
},
],
"position": Object {
"end": Object {
"column": 11,
"line": 19,
"offset": 142,
},
"start": Object {
"column": 1,
"line": 19,
"offset": 132,
},
},
"type": "paragraph",
},
Object {
"lang": "js",
"meta": null,
"position": Object {
"end": Object {
"column": 4,
"line": 23,
"offset": 166,
},
"start": Object {
"column": 1,
"line": 21,
"offset": 144,
},
},
"type": "code",
"value": "// test code",
},
Object {
"children": Array [
Object {
"position": Object {
"end": Object {
"column": 18,
"line": 25,
"offset": 185,
},
"start": Object {
"column": 1,
"line": 25,
"offset": 168,
},
},
"type": "text",
"value": "Second hint with ",
},
Object {
"position": Object {
"end": Object {
"column": 24,
"line": 25,
"offset": 191,
},
"start": Object {
"column": 18,
"line": 25,
"offset": 185,
},
},
"type": "html",
"value": "<code>",
},
Object {
"position": Object {
"end": Object {
"column": 28,
"line": 25,
"offset": 195,
},
"start": Object {
"column": 24,
"line": 25,
"offset": 191,
},
},
"type": "text",
"value": "code",
},
Object {
"position": Object {
"end": Object {
"column": 35,
"line": 25,
"offset": 202,
},
"start": Object {
"column": 28,
"line": 25,
"offset": 195,
},
},
"type": "html",
"value": "</code>",
},
],
"position": Object {
"end": Object {
"column": 35,
"line": 25,
"offset": 202,
},
"start": Object {
"column": 1,
"line": 25,
"offset": 168,
},
},
"type": "paragraph",
},
Object {
"lang": "js",
"meta": null,
"position": Object {
"end": Object {
"column": 4,
"line": 29,
"offset": 231,
},
"start": Object {
"column": 1,
"line": 27,
"offset": 204,
},
},
"type": "code",
"value": "// more test code",
},
Object {
"children": Array [
Object {
"position": Object {
"end": Object {
"column": 7,
"line": 31,
"offset": 239,
},
"start": Object {
"column": 1,
"line": 31,
"offset": 233,
},
},
"type": "text",
"value": "Third ",
},
Object {
"children": Array [
Object {
"position": Object {
"end": Object {
"column": 12,
"line": 31,
"offset": 244,
},
"start": Object {
"column": 8,
"line": 31,
"offset": 240,
},
},
"type": "text",
"value": "hint",
},
],
"position": Object {
"end": Object {
"column": 13,
"line": 31,
"offset": 245,
},
"start": Object {
"column": 7,
"line": 31,
"offset": 239,
},
},
"type": "emphasis",
},
Object {
"position": Object {
"end": Object {
"column": 19,
"line": 31,
"offset": 251,
},
"start": Object {
"column": 13,
"line": 31,
"offset": 245,
},
},
"type": "text",
"value": " with ",
},
Object {
"position": Object {
"end": Object {
"column": 25,
"line": 31,
"offset": 257,
},
"start": Object {
"column": 19,
"line": 31,
"offset": 251,
},
},
"type": "html",
"value": "<code>",
},
Object {
"position": Object {
"end": Object {
"column": 29,
"line": 31,
"offset": 261,
},
"start": Object {
"column": 25,
"line": 31,
"offset": 257,
},
},
"type": "text",
"value": "code",
},
Object {
"position": Object {
"end": Object {
"column": 36,
"line": 31,
"offset": 268,
},
"start": Object {
"column": 29,
"line": 31,
"offset": 261,
},
},
"type": "html",
"value": "</code>",
},
Object {
"position": Object {
"end": Object {
"column": 41,
"line": 31,
"offset": 273,
},
"start": Object {
"column": 36,
"line": 31,
"offset": 268,
},
},
"type": "text",
"value": " and ",
},
Object {
"position": Object {
"end": Object {
"column": 54,
"line": 31,
"offset": 286,
},
"start": Object {
"column": 41,
"line": 31,
"offset": 273,
},
},
"type": "inlineCode",
"value": "inline code",
},
],
"position": Object {
"end": Object {
"column": 54,
"line": 31,
"offset": 286,
},
"start": Object {
"column": 1,
"line": 31,
"offset": 233,
},
},
"type": "paragraph",
},
Object {
"lang": "js",
"meta": null,
"position": Object {
"end": Object {
"column": 4,
"line": 38,
"offset": 353,
},
"start": Object {
"column": 1,
"line": 33,
"offset": 288,
},
},
"type": "code",
"value": "// more test code
if(let x of xs) {
console.log(x);
}",
},
]
`;
exports[`between-headings should match the instructions snapshot 1`] = `
Array [
Object {
"children": Array [
Object {
"position": Object {
"end": Object {
"column": 12,
"line": 11,
"offset": 89,
},
"start": Object {
"column": 1,
"line": 11,
"offset": 78,
},
},
"type": "text",
"value": "Paragraph 0",
},
],
"position": Object {
"end": Object {
"column": 12,
"line": 11,
"offset": 89,
},
"start": Object {
"column": 1,
"line": 11,
"offset": 78,
},
},
"type": "paragraph",
},
Object {
"lang": "html",
"meta": null,
"position": Object {
"end": Object {
"column": 4,
"line": 15,
"offset": 117,
},
"start": Object {
"column": 1,
"line": 13,
"offset": 91,
},
},
"type": "code",
"value": "code example 0",
},
]
`;