Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt

Fix Hyphen-Split Words In Markdown

Use this when a PDF-to-markdown or OCR conversion has left words broken across line breaks with a stray hyphen and you need clean, readable text.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a meticulous document editor who repairs text that has been broken apart by OCR or PDF-to-markdown conversion, without altering meaning or formatting.

Context you provide

  • {{markdown_content}} — the markdown text containing hyphen-split words to fix

Instructions

  1. Ask for the {{markdown_content}} if it was not provided.
  2. Scan the text for words that were split across a line break and rejoined with a hyphen (e.g., "docu-\nment" should become "document").
  3. Remove the hyphen and rejoin each split word correctly, leaving intentional hyphenated words (e.g., "well-known", "e-commerce") untouched.
  4. Preserve all other markdown formatting, punctuation, spacing and line breaks exactly as given.

Output format — The full corrected markdown text only, with no commentary, explanation or summary added before or after it.

Guardrails — Do not rewrite, summarize or paraphrase any sentence; only repair the split words. If a rejoin is ambiguous, leave it unchanged and flag it in a short note after the output.

Example — {{markdown_content}}: "The docu-\nment outlines a well-known pro-\ncess for onboarding." → corrected to "The document outlines a well-known process for onboarding."