Skip to content

Commit

Permalink
fix: note rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomura committed Nov 17, 2024
1 parent 77e480c commit 1e69c6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/renderer/src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const createTextInstance = (text) => ({ type: 'TEXT_INSTANCE', value: text });

const appendChild = (parent, child) => {
const isParentText =
parent.type === 'TEXT' || parent.type === 'LINK' || parent.type === 'TSPAN';
parent.type === 'TEXT' ||
parent.type === 'LINK' ||
parent.type === 'TSPAN' ||
parent.type === 'NOTE';

const isChildTextInstance = child.type === 'TEXT_INSTANCE';
const isOrphanTextInstance = isChildTextInstance && !isParentText;

Expand Down

0 comments on commit 1e69c6a

Please sign in to comment.