diff --git a/apps/web/src/components/files/FilePreviewPanel.test.ts b/apps/web/src/components/files/FilePreviewPanel.test.ts index cc21768bbcfb9..afee3d54e06b8 100644 --- a/apps/web/src/components/files/FilePreviewPanel.test.ts +++ b/apps/web/src/components/files/FilePreviewPanel.test.ts @@ -457,12 +457,13 @@ Third}`; it.each(["odt", "odp"] as const)("reads %s text and rejects XML entities", async (kind) => { const archive = new JSZip().file( "content.xml", - `${kind === "odt" ? "Field notes" : 'Launch plan'}`, + `${kind === "odt" ? "Field notes" : 'Launch planSpeaker only'}`, ); const result = await openDocument(archive, kind); expect(result.type).toBe("document"); if (result.type !== "document") throw new Error("Expected document"); expect(result.pages[0]!.html).toContain(kind === "odt" ? "Field notes" : "Launch plan"); + expect(result.pages[0]!.html).not.toContain("Speaker only"); archive.file( "content.xml", ']>&external;', diff --git a/apps/web/src/components/files/extendedDocumentPreview.ts b/apps/web/src/components/files/extendedDocumentPreview.ts index a8b16fdd63bbb..8a8ceefe1d89c 100644 --- a/apps/web/src/components/files/extendedDocumentPreview.ts +++ b/apps/web/src/components/files/extendedDocumentPreview.ts @@ -28,6 +28,7 @@ const namespacePrefixes: Record = { "urn:oasis:names:tc:opendocument:xmlns:table:1.0": "table", "urn:oasis:names:tc:opendocument:xmlns:text:1.0": "text", "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0": "draw", + "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0": "presentation", "http://www.w3.org/1999/xlink": "xlink", "http://www.w3.org/1999/xhtml": "", "http://www.idpf.org/2007/opf": "", @@ -275,6 +276,7 @@ async function odfHtml(node: XmlNode, archive: JSZip): Promise { if ( [ "office:annotation", + "presentation:notes", "text:tracked-changes", "office:scripts", "draw:object",