fix(code-block): fix normalizer and insertBreak for syntax highlighting #4837
+16
−1
Annotations
2 errors
|
🧪 Test
Process completed with exit code 1.
|
|
🧪 Test:
packages/code-block/src/lib/withNormalizeCodeBlock.spec.tsx#L44
[
{
"children": [
{
"children": [
{
- "text": "line 1",
+ "children": [
+ {
+ "text": "line 1",
+ },
+ ],
+ "type": "p",
},
],
"type": "code_line",
},
{
"children": [
{
"text": "line 2",
},
],
"type": "code_line",
},
],
"type": "code_block",
},
]
- Expected - 1
+ Received + 6
at <anonymous> (/home/runner/work/plate/plate/packages/code-block/src/lib/withNormalizeCodeBlock.spec.tsx:44:29)
|
Loading