Personal Raycast Script Commands by Aaro Isosaari.
Converts rich text on the clipboard to Markdown and pastes it into the focused text field — one hotkey, no intermediate steps.
Useful for pasting formatted content from Slack, webpages, Notion, etc. into plain-text inputs like Claude, ChatGPT, or terminals without losing structure (links, bold, blockquotes, lists).
Flow: copy rich text → hit hotkey → Markdown appears inline.
How it works: reads the public.html flavor off the pasteboard,
runs it through pandoc -f html -t gfm, writes the result back with
pbcopy, and sends ⌘V to the frontmost app via osascript.
- Install pandoc:
brew install pandoc - In Raycast: Settings → Extensions → Script Commands → Add Directories, select this repo's folder.
- Expand Script Commands in the list, find each script, and bind a hotkey (I use ⇧⌘N for clipboard-to-markdown).
- Grant Raycast Automation → System Events permission the first time
a script that sends keystrokes runs. If the prompt doesn't appear,
reset with:
tccutil reset AppleEvents com.raycast.macos.