File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ const generateUnformattedCode = (
78
78
if (
79
79
referencedHTML . tag === 'h1' ||
80
80
referencedHTML . tag === 'h2' ||
81
+ referencedHTML . tag === 'a' ||
82
+ referencedHTML . tag === 'p' ||
81
83
referencedHTML . tag === 'button' ||
82
84
referencedHTML . tag === 'span' ||
83
85
referencedHTML . tag === 'div' ||
@@ -89,8 +91,7 @@ const generateUnformattedCode = (
89
91
referencedHTML . tag === 'li' ||
90
92
referencedHTML . tag === 'Link' ||
91
93
referencedHTML . tag === 'Switch' ||
92
- referencedHTML . tag === 'Route' ||
93
- referencedHTML . tag === 'Image'
94
+ referencedHTML . tag === 'Route'
94
95
) {
95
96
child . children = getEnrichedChildren ( child ) ;
96
97
}
@@ -278,6 +279,7 @@ const generateUnformattedCode = (
278
279
const nestable =
279
280
childElement . tag === 'h1' ||
280
281
childElement . tag === 'h2' ||
282
+ childElement . tag === 'a' ||
281
283
childElement . tag === 'span' ||
282
284
childElement . tag === 'button' ||
283
285
childElement . tag === 'p' ||
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ const renderChildren = (children: ChildElement[]) => {
44
44
type === 'HTML Element' &&
45
45
typeId !== 11 &&
46
46
typeId !== 1000 &&
47
+ typeId !== 1 &&
47
48
typeId !== 2 &&
48
49
typeId !== 3 &&
49
50
typeId !== 4 &&
@@ -78,6 +79,7 @@ const renderChildren = (children: ChildElement[]) => {
78
79
else if (
79
80
type === 'HTML Element' &&
80
81
( typeId === 11 ||
82
+ typeId === 1 ||
81
83
typeId === 2 ||
82
84
typeId === 3 ||
83
85
typeId === 4 ||
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const HTMLTypes: HTMLType[] = [
37
37
placeHolderLong : '' ,
38
38
icon : 'Link' ,
39
39
framework : 'reactClassic' ,
40
- nestable : false
40
+ nestable : true
41
41
} ,
42
42
{
43
43
id : 2 ,
@@ -103,7 +103,7 @@ const HTMLTypes: HTMLType[] = [
103
103
placeHolderLong : '' ,
104
104
icon : 'EditOutlined' ,
105
105
framework : 'reactClassic' ,
106
- nestable : true
106
+ nestable : false
107
107
} ,
108
108
{
109
109
id : 5 ,
@@ -137,7 +137,7 @@ const HTMLTypes: HTMLType[] = [
137
137
placeHolderLong : '' ,
138
138
icon : 'MoreOutlined' ,
139
139
framework : 'reactClassic' ,
140
- nestable : false
140
+ nestable : true
141
141
} ,
142
142
{
143
143
id : 14 ,
You can’t perform that action at this time.
0 commit comments