diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index f0d6fa401..141d66b73 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -357,8 +357,13 @@ const embeds: EmbedDescriptor[] = [ name: IntegrationService.Grist, keywords: "spreadsheet", regexMatch: [new RegExp("^https?://([a-z.-]+\\.)?getgrist\\.com/(.+)$")], - transformMatch: (matches: RegExpMatchArray) => - matches[0].replace(/(\?embed=true)?$/, "?embed=true"), + transformMatch: (matches: RegExpMatchArray) => { + if (matches[0].includes("style=singlePage")) { + return matches[0]; + } + + return matches[0].replace(/(\?embed=true)?$/, "?embed=true"); + }, icon: Grist, }), new EmbedDescriptor({