From ee970f2961ba2d58974ffb59028d29876b9fd653 Mon Sep 17 00:00:00 2001 From: Shanu S Date: Sat, 4 Jul 2026 12:50:01 +0530 Subject: [PATCH] fix: wrap list item content in flex View so bullets respect margin (#3202) * fix(pdf): wrap list item content in flex View so bullets respect margin * fix(pdf): add minWidth 0 to bullet content so long text wraps --- packages/pdf/src/templates/shared/rich-text.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/pdf/src/templates/shared/rich-text.tsx b/packages/pdf/src/templates/shared/rich-text.tsx index 6b8bdb763..4062f0e18 100644 --- a/packages/pdf/src/templates/shared/rich-text.tsx +++ b/packages/pdf/src/templates/shared/rich-text.tsx @@ -128,13 +128,6 @@ export const RichText = ({ children }: RichTextProps) => { ); - let hasNestedList = false; - if (Array.isArray(children)) { - hasNestedList = children.some( - (child) => child?.props?.element?.rawTagName === "ul" || child?.props?.element?.rawTagName === "ol", - ); - } - // Same BiDi-injection trick as the

renderer — see applyRtlDirectionRecursively. const contentNode = rtl ? ( { > {markerNode} - {children} + {children} );