diff options
| author | MaheshtheDev <[email protected]> | 2025-11-03 00:41:58 +0000 |
|---|---|---|
| committer | MaheshtheDev <[email protected]> | 2025-11-03 00:41:59 +0000 |
| commit | 8d8d6d91aa8cdec49e7e6ef87cbc5622d0bc16ed (patch) | |
| tree | 27862f7558d837615d2af6cea8c30ea03d414096 /apps/browser-extension/utils | |
| parent | chore: update readme with recent updates and latest demo (#547) (diff) | |
| download | supermemory-8d8d6d91aa8cdec49e7e6ef87cbc5622d0bc16ed.tar.xz supermemory-8d8d6d91aa8cdec49e7e6ef87cbc5622d0bc16ed.zip | |
feat(browser-extension): webpages capture with markdown conversion (#548)10-31-feat_browser-extension_webpages_capture_with_markdown_conversion
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
Diffstat (limited to 'apps/browser-extension/utils')
| -rw-r--r-- | apps/browser-extension/utils/types.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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 } /** |