Dan Tech Academy

Copy Markdown Button for AI Workflow

One-click copy markdown button for AI workflow integration. Streamline ChatGPT, Claude usage and note-taking.

Why We Built This

Copying blog content to ChatGPT 10x times a day? There's a better way.

Developers use AI tools daily. Note-taking apps need raw markdown. We needed one-click solution.

The Solution

'use client'

export function CopyRawContent({ rawContent }: { rawContent: string }) {
  const [copied, setCopied] = useState(false)

  const handleCopy = async () => {
    await navigator.clipboard.writeText(rawContent)
    setCopied(true)
    setTimeout(() => setCopied(false), 2000)
  }

  return <button onClick={handleCopy}>{copied ? 'Copied!' : 'Copy Page MD'}</button>
}

Key features: Visual feedback, Clipboard API, timer cleanup, accessible.

Use Cases

  1. Code Review → Copy → ChatGPT → "Review this"
  2. Learning → Copy → Claude → "Explain simpler"
  3. Knowledge Base → Copy → Obsidian/Notion

Try It

Scroll to top, click "Copy Page MD", paste to your AI tool!


Reading is fun. A roadmap gets you there.

The Kotlin Android Roadmap sorts the Android Mastery, OOP and Design Patterns posts into 5 levels - from your first line of Kotlin to an app on the store.

Plus a new post every week. Unsubscribe anytime.