Created
December 12, 2025 18:47
-
-
Save johnlindquist/a2beb7dad1bcb3052acd164e456b2ffd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Name: Get Current Page as Markdown | |
| // Shortcut: opt t | |
| import "@johnlindquist/kit" | |
| const url = await getActiveTab() | |
| const response = await get(`https://into.md/${url}`) | |
| const text = ` | |
| <site> | |
| <url> | |
| ${url} | |
| </url> | |
| <content> | |
| ${response.data} | |
| </content> | |
| </site> | |
| --- | |
| `.trim() | |
| await clipboard.writeText(text) | |
| await editor(text) | |
| await setSelectedText(text) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment