ChatGPT → PDF · Local

What to do when Excerpt code blocks wrap mid-token in the PDF and a command looks wrong

If Excerpt code blocks wrap mid-token in the PDF, keep Markdown as the runnable source and treat the PDF as a reading copy only.

Also on Microsoft Edge Add-ons

A line-break in the middle of a flag, a hash, or a path can turn a safe command into a wrong one in the eyes of a tired reader. If Excerpt code blocks wrap mid-token in the PDF, keep the Markdown (or the original block) as the runnable source, and treat the PDF as a reading copy you will not paste from until you have checked it.

This is not the Markdown code-fences page (which is about export structure in .md), and not a general fonts page. The job is mid-token wrapping in a PDF of a code block. The capture path is the ChatGPT to PDF workflow for what is actually visible on the page.

When Excerpt code blocks wrap mid-token in the PDF, stop pasting from the PDF

  1. Open the Markdown export or the live chat and compare the line to the PDF. If a token is split, do not copy the command from the PDF.
  2. Keep Markdown as the file you will paste or commit from. Use the PDF only to show someone the shape of a short snippet after you have confirmed the line breaks are harmless, or do not use the PDF for code at all.
  3. Clip long scripts as their own items, and prefer smaller blocks; huge wrapped walls are where mid-token breaks hide.
  4. If you already shared a wrapped PDF, send a corrected Markdown or a recaptured file and say not to paste from the old one.

Honest limits

  • Excerpt is not a typesetting system that can guarantee a monospaced, unwrapped column for every width of snippet.
  • This is different from fences that broke in Markdown, which have their own troubleshooting page.
  • Screenshot mode can preserve the look of a short block but is a poor source to paste from.

If you want a local file rather than another cloud clipboard, install Excerpt in Chrome or Edge. Multi-select the blocks, export PDF or Markdown, and find them later in the on-device IndexedDB library. Free includes 100 clippings and 5 tags; Pro is $29 one-time for unlimited clippings and backup import/export. Do not expect a log-in, a family sync channel, or a built-in AI summary—those are not shipped features.

The rule is simple: never run a command you copied from a wrapped PDF without comparing it to a monospaced source. Runbooks should link to Markdown or to a repo, not to a screenshot of a chat.

Pay special attention to hyphens, trailing backslashes, and long URLs inside commands—these are the tokens wrapping loves to split. If a review packet must be PDF, add a one-line warning at the top of the clipping: 'Do not paste code from this PDF; use the Markdown.' That sentence prevents a class of late-night outages.

When you are ready to clip, install Excerpt on Chrome or Excerpt on Edge and export a clean local file rather than pasting the thread into a random converter site.

FAQ

Can I make the PDF never wrap code?

Not as a guaranteed typesetting promise. Keep Markdown as the runnable source, and use the PDF as a reading copy only after you have checked the lines.

How is this different from broken Markdown code fences?

That page is about structure in a .md file. This page is about a PDF that visually splits a token, even when the Markdown may be fine.

Install Excerpt and save your next clip as a clean PDF

Free: up to 100 clippings and 5 tags. Pro is $29 one-time for unlimited + library backup import/export.