Remove H1 title from text

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

Log caffeine

Asks you to choose the type of caffeinated drink (coffee, espresso, cappuccino, or a soda) and logs the caffeine content into the Health app. Also compares against the daily recommended limit of milligrams of caffeine.

Get Shortcut »

Open Health settings

Opens the Settings app to the Health section to let you change your Health Details and Medical ID information, plus Data Access and Devices, Health Records, and Health Checklist.

Get Shortcut »

Open Spoken Content preferences

Opens the deep link in Accessibility > Spoken Content where you can adjust settings like Speak Selection, Speak Screen, Highlight Content, Typing Feedback, Voices, Default Language, Speaking Rate, and Pronunciations.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more