Rebuilds headings, lists, code blocks, and callouts from a plain-text memo whose formatting was lost. One pass joins hard-wrapped lines; another labels the reconstructed blocks.
Original by TypeSafe AIExtractionTypeSafe cookbookSource reviewed
Before you dive in
What you’ll find in the original
Join broken lines before classifying document blocks.
Use block labels to render Markdown rather than asking Jev to write the whole document.
Inspect low-confidence blocks and the joining thresholds before accepting recovered formatting.
Worth knowing
The output is reconstructed formatting, not a guarantee that the original document had exactly these boundaries.