AI chat → PDF · Local

What to try when Excerpt Markdown code fences broken in the export

If Excerpt Markdown code fences broken, compare the preview to the file, check extra backticks, and keep a PDF snapshot when typography matters more.

Also on Microsoft Edge Add-ons

Markdown is a text export, and code blocks are the first place a fence can go wrong: a missing closing fence, a fence that starts inside a snippet, or a language tag that a later editor misreads. If you have Excerpt Markdown code fences broken in a file you just exported, compare that file to the preview in Excerpt and to a PDF of the same clipping before you reinstall. This is not the missing-images guide, not the ChatGPT-code-blocks how-to, and not a formatting issue in a PDF.

The library habit is on the save AI chat page. You can export both formats from the same item; the PDF is often the more faithful snapshot of typography, while Markdown is the file you will edit.

Excerpt Markdown code fences broken: a short checklist

  1. Open the clipping in preview or My Library and confirm the code block looks intact there. If the preview is already scrambled, fix the selection (include the whole block, drop a neighboring snippet that contains triple backticks) and export again.
  2. Open the Markdown file in a plain editor and look for an unclosed fence, a fence inside another fence, or a block that never got fences at all. A single extra ``` in the source text can close the block early.
  3. Export PDF of the same clipping. If the PDF shows the code correctly, keep that snapshot and repair the Markdown by hand, or re-export after tightening the selection.
  4. Do not uninstall to “reset” Markdown. That can risk the library and rarely fixes a fence that was already in the selected text.

What usually causes a bad fence

  • The original page or chat already contained triple backticks inside the snippet.
  • Two code blocks were selected with leftover prose that included a fence.
  • A later editor (a vault plugin, a CMS) re-wrapped the file and broke a fence that was valid when you exported.

There is no official “normalize all fences” button claimed here, and no AI fixer that will rewrite the file for you. If a simple, clearly selected ChatGPT code block is clean in preview and systematically broken in every Markdown export, that is worth a careful report—not a panicked reinstall.

When PDF is the better keep

If you only needed to reread the code, the PDF may already be enough. Use Markdown when you will paste into a repo or a note, and check the fences once in the destination. Free includes 100 clippings and 5 tags; Pro is $29 one-time for unlimited clippings plus backup import/export. There is no cloud sync and no AI summarizer claimed as shipped.

Use Chrome or Edge, compare preview, Markdown, and PDF, and fix the selection or the file before you change the install.

Compare three views before you reset anything

Preview, Markdown, and PDF together tell you whether the block was badly selected, the file has an extra fence, or only a later editor is at fault.

FAQ

Why would the preview look fine when the Markdown file breaks a code block?

The source text may contain backticks, or a later editor re-wrapped the file. Compare a PDF of the same clipping and inspect the fences in a plain editor.

Should I reinstall to fix broken fences?

No. Tighten the selection, re-export, and inspect the file. Uninstalling can risk the local library.

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.