Skip to content

Commit 1e69c6a

Browse files
committed
fix: note rendering
1 parent 77e480c commit 1e69c6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/renderer/src/renderer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const createTextInstance = (text) => ({ type: 'TEXT_INSTANCE', value: text });
1515

1616
const appendChild = (parent, child) => {
1717
const isParentText =
18-
parent.type === 'TEXT' || parent.type === 'LINK' || parent.type === 'TSPAN';
18+
parent.type === 'TEXT' ||
19+
parent.type === 'LINK' ||
20+
parent.type === 'TSPAN' ||
21+
parent.type === 'NOTE';
22+
1923
const isChildTextInstance = child.type === 'TEXT_INSTANCE';
2024
const isOrphanTextInstance = isChildTextInstance && !isParentText;
2125

0 commit comments

Comments
 (0)