diff --git a/apps/server/src/integrations/import/utils/import-formatter.ts b/apps/server/src/integrations/import/utils/import-formatter.ts index f5ce02683..ac41d5fc5 100644 --- a/apps/server/src/integrations/import/utils/import-formatter.ts +++ b/apps/server/src/integrations/import/utils/import-formatter.ts @@ -104,12 +104,8 @@ export function defaultHtmlFormatter($: CheerioAPI, $root: Cheerio) { normalizeTableColumnWidths($, $root); applyConfluenceMarginLeftIndent($, $root); - // Auto-embed only when the is the SOLE meaningful child of its parent - // block (the "naked URL on its own line" pattern editors use as the - // embed-intent signal). Otherwise body-text links to YouTube/Vimeo/Loom - // get silently turned into fullscreen iframes, which is rarely what the - // author wanted — Confluence's storage format has the `widget` macro for - // explicit embeds, handled separately in the API converter. + // Auto-embed only when the is the sole meaningful child of its parent + // block. A link mixed with surrounding text stays an inline link. $root.find('a[href]').each((_, el) => { const $el = $(el); const url = $el.attr('href')!;