Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created December 12, 2025 18:47
Show Gist options
  • Select an option

  • Save johnlindquist/a2beb7dad1bcb3052acd164e456b2ffd to your computer and use it in GitHub Desktop.

Select an option

Save johnlindquist/a2beb7dad1bcb3052acd164e456b2ffd to your computer and use it in GitHub Desktop.
// 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