Skip to content

Commit 9fc3acf

Browse files
committed
Added test case
1 parent c2cbc30 commit 9fc3acf

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[
2+
{
3+
"children": [],
4+
"content": [
5+
{
6+
"styles": {},
7+
"text": "console.log("First Line")
8+
console.log("Second Line")
9+
console.log("Third Line")",
10+
"type": "text",
11+
},
12+
],
13+
"id": "1",
14+
"props": {
15+
"language": "text",
16+
},
17+
"type": "codeBlock",
18+
},
19+
]

tests/src/unit/core/formatConversion/parse/parseTestInstances.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,15 @@ With Hard Break</p>
814814
},
815815
executeTest: testParseHTML,
816816
},
817+
{
818+
testCase: {
819+
name: "codeBlocksMultiLine",
820+
content: `<pre><code>console.log("First Line")
821+
console.log("Second Line")
822+
console.log("Third Line")</code></pre>`,
823+
},
824+
executeTest: testParseHTML,
825+
},
817826
{
818827
testCase: {
819828
name: "basicBlockquote",

0 commit comments

Comments
 (0)