From 8d8d6d91aa8cdec49e7e6ef87cbc5622d0bc16ed Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Mon, 3 Nov 2025 00:41:58 +0000 Subject: feat(browser-extension): webpages capture with markdown conversion (#548) Improved browser extension memory saving with better content handling and added markdown conversion. ### What changed? - Enhanced memory content handling in the background script to prioritize different content types (explicit content, highlighted text, markdown, HTML, or URL) - Added HTML to markdown conversion using TurndownService when saving entire pages - Improved HTML handling by removing script tags before processing - Updated the web app to display the saved URL from metadata when available - Added turndown library and its type definitions as dependencies --- apps/browser-extension/utils/types.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/browser-extension/utils') diff --git a/apps/browser-extension/utils/types.ts b/apps/browser-extension/utils/types.ts index f8d9efd8..8cec2241 100644 --- a/apps/browser-extension/utils/types.ts +++ b/apps/browser-extension/utils/types.ts @@ -32,9 +32,12 @@ export interface ExtensionMessage { */ export interface MemoryData { html?: string + markdown?: string content?: string highlightedText?: string url?: string + ogImage?: string + title?: string } /** -- cgit v1.2.3