diff --git a/src/frontend/apps/impress/src/features/docs/doc-export/utils_print.ts b/src/frontend/apps/impress/src/features/docs/doc-export/utils_print.ts index b8b5760ee..a19d92c54 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-export/utils_print.ts +++ b/src/frontend/apps/impress/src/features/docs/doc-export/utils_print.ts @@ -35,8 +35,10 @@ const PRINT_ONLY_CONTENT_CSS = ` } /* Hide selection highlights */ - .ProseMirror-yjs-selection { + .ProseMirror-yjs-selection, + .bn-thread-mark { background-color: transparent !important; + border-bottom: none !important; } /* Reset all layout containers for print flow */ @@ -299,7 +301,12 @@ export function printDocumentWithStyles() { setTimeout(() => { const cleanupLinks = wrapMediaWithLink(); const cleanupInterlinks = wrapInterlinksWithAnchor(); + let cleaned = false; const cleanup = () => { + if (cleaned) { + return; + } + cleaned = true; cleanupInterlinks(); cleanupLinks(); cleanupPrintStyles();