Commit b1b25ab
committed
feat(capture): extract page main content as Markdown
Clipping a page with nothing selected captured only its title, URL, and
a
one-line description, which is closer to a bookmark than a clip.
- Prefill the editor with the page's article body as Markdown,
preserving
headings, lists, code blocks, and tables
- Run extraction in the popup against an inert document, so the injected
capture stays self-contained and the extractor is testable without a
tab
- Load the extractor lazily, leaving the popup's initial parse unchanged
- Keep an explicit selection ahead of the extracted article
- Drop images from extracted articles rather than hotlinking them, since
images are uploaded as attachments; figure captions are kept
- Explain the fallback when a page has no article to extract1 parent edb43c4 commit b1b25ab
19 files changed
Lines changed: 509 additions & 28 deletions
File tree
- public/_locales
- de
- en
- es
- fr
- ja
- zh_CN
- zh_TW
- src
- lib
- __tests__
- popup
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
0 commit comments