tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
replace br tags w/ div
awarm.space
1 year ago
d64e6692
0d2d794b
+2
-2
1 changed file
expand all
collapse all
unified
split
components
Blocks
TextBlock
RenderYJSFragment.tsx
+2
-2
components/Blocks/TextBlock/RenderYJSFragment.tsx
···
19
19
return (
20
20
<BlockWrapper wrapper={wrapper} attrs={attrs}>
21
21
{children.length === 0 ? (
22
22
-
<br />
22
22
+
<div />
23
23
) : (
24
24
node
25
25
.toArray()
···
29
29
);
30
30
}
31
31
case "hard_break":
32
32
-
return <br />;
32
32
+
return <div />;
33
33
default:
34
34
return null;
35
35
}