Remove H1 title from text

Finds the H1 header, removes that first line and one after it, and gets just the body of the text.

Scripting Actions

shortcuts-action-icon-replace-text.webp
Replace Text
Replaces some text passed into the action with other text.
shortcuts-action-icon-copy-to-clipboard.webp
Copy to Clipboard
Copies the result of the last action to the clipboard.

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Remove%20H1%20title%20from%20text
Link to Open Shortcut
shortcuts://open-shortcut?name=Remove%20H1%20title%20from%20text
AppleScript code
tell application “Shortcuts Events” run shortcut “Remove H1 title from text” end tell

More From This Folder

More From The Library

Show my saved stories

Opens into the Saved Stories tab of the News app, where you can quickly access news stories you’ve saved for later – I’ll often save multiple stories as I browse, then visit this tab to read them all one-by-one.

Get Shortcut »

Open Threads app

Opens the Threads app from Instagram/Meta. On iPhone, works well with custom icons. On iPad, uses Stage Manager to make proper window. On Mac, opens web app created using Add to Dock.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more