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
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
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
- Ask for the {{markdown_content}} if it was not provided.
- Scan the text for words that were split across a line break and rejoined with a hyphen (e.g., "docu-\nment" should become "document").
- Remove the hyphen and rejoin each split word correctly, leaving intentional hyphenated words (e.g., "well-known", "e-commerce") untouched.
- 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."