Where to Split a Long Markdown Note into Carousel Images
Published
Choose page breaks for a multi-image post before the editor clips a heading, a table, or a code block, and keep each card understandable alone.
Steps
- Mark the sections a person could title. Add a heading wherever the topic changes. Those headings are the only breaks worth trusting.
- Fit one heading plus its evidence on a card. A card can hold a short list, a few table rows, or a short fence. Move the next heading into the following page on purpose.
- Read the preview page by page. Check that page one states the subject and that the last page is not a leftover line. Fix any clip warning before you export.
- Export and name the sequence. Export downloads numbered files. Download ZIP and Download PDF, in the same export bar, pack those same pages into one archive or one multi-page PDF. Confirm the order before you upload.
A carousel is a sequence of posters, not a scroll
A long Markdown note wants to be scrolled. A feed image cannot scroll. The editor's answer is to slice the note into fixed canvases, up to five, and download them as separate files. That will get the pixels onto separate images. It will not decide which idea belongs with which image. If you leave the breaks to the height estimate, a heading can land on the bottom of one card and its list on the next, or a code sample can break at whatever source line happened to fill the box.
Write the breaks yourself, then use the preview to see whether the canvas agrees. The Instagram post tool and the other presets share this paginator. The canvas size changes how much fits. The rule for a break does not.
Start from the note you would actually publish, not from a desire to "make a carousel". Five images of a document nobody needed as images is still a document, only harder to copy. Split when each card can carry one point that is worth pausing on: a step, a comparison, a single change in a release. If you cannot name the card without saying "continued", it should probably stay in the article and the carousel should be a summary. How to turn Markdown into an image is the shorter version of that choice.
Put a heading where you want a new card
The reliable break is a heading you would say out loud. "What changed", "What to do", and "What we left out" can each open a card. A blank line is not a break. It is a paragraph gap, and the paginator is free to keep both paragraphs together or to separate them based on height.
This shape is predictable because you forced the sections to be short:
# What changed
The export now warns when a line is wider than the card.
# What to try
- Paste a long command
- Break it before the warning
- Export again
# What this does not do
It still will not make the PNG transparent.
Each heading is a legal first line for a poster. If the preview still joins two of them, the sections are short enough that joining is harmless. If the preview splits one section across two files, that section is still too tall: cut a bullet or move a sentence into the caption.
Do not split in the middle of a sentence by inserting a heading as a trick. The second card then opens on a fragment. Do not use a horizontal rule as a fake page break. The editor does not treat a rule as a mandatory new page.
Lists, tables, and fences break differently
A list splits between items when the next item does not fit. That is acceptable for a checklist if every item makes sense alone, and it is a mess for a list whose later items say "the same as above" or "except for step 2". When the order matters, either keep the list short enough for one card or repeat the subject in the later items: "Export: check the last page", not "Check the last page" on a card that no longer shows the word export.
A single list item that is taller than the canvas can be split mid-sentence. That is a signal to rewrite the item, not to publish the pieces.
A pipe table is split by row. Each chunk repeats the header and the separator, which is what you want, and it does not repeat a heading that sat above the table. If the header cells are cryptic ("A", "B", "C"), the repeated header does not save the next card. Rename the columns so a card that starts at row 4 is still readable. The worked version of a wide table is in Markdown table to image without a screenshot. Prefer two honest comparisons over one table that needs three images.
A fenced code block that is too tall is cut by source line. Each piece keeps the opening fence, so a ```ts fence stays a TypeScript fence on the next page. It does not keep the comment that explained the first line, and it does not reflow a long line. pre is clipped rather than wrapped. If the preview says the content is wider than the canvas, insert a break in the source. Publishing a clipped command is worse than publishing a shorter one. Readable code images goes through line length, highlighting, and where the copyable version should live.
The five-page ceiling is a hard stop
The exporter keeps the first five pages and drops the rest. The preview tells you when that happens. There is no sixth file waiting in the download folder. If the note is a tutorial with twelve steps, you have two honest options: summarize it in five cards and link to the full text, or export two separate sequences and post them as two threads or two carousels with a clear handoff in the caption ("Part 2 starts at step 6").
A block that is still taller or wider than one canvas after the split is clipped. Lowering the font size from the default 36 toward the minimum 24 fits more lines and makes every line smaller at phone width. That trade is usually a loss for a feed. Cutting words is the better fix. Type and contrast shows why a file that looks fine at 1200 pixels wide fails when the feed shows it much smaller.
The page label ("Page 2 / 3") is drawn under the card when there is more than one page. It is a small orientation aid, not a title. Do not rely on it to explain the topic. A platform crop can also shave the edge of a tall image, so keep the point in the card, not in the label.
Check the sequence the way it will be uploaded
Export PNG for a text-heavy sequence so you can judge the breaks on sharp type. The files are numbered, with the preset id in the name, one file per page. Open them in order at a width close to the phone column, not at full resolution. You are looking for four failures:
- Card 1 does not say what the sequence is about.
- A card opens on "and" or on a table row whose header was only on the previous file. The editor repeats table headers when it splits a table, but it will not repeat a heading you forgot to write.
- The last card is one orphan line or the tail of a code block.
- A warning about clipping was still on screen when you exported.
Upload the same aspect ratio for every image in the set. The size guide is how you pick that ratio once. Reordering in the composer is a last look: the first image is the one people see before they swipe, so it has to stand alone. The last image should close the point or point at the link. A sequence that just stops is a pagination artifact.
Write alt text per image, not one description for the set. Say the slide's claim, and include "2 of 4" when the order matters. The pattern is in alt text for text images.
Download the pages together
The page controls under Export settings are the split you are about to publish. Move through them before you download. Export still saves one image per page in the format you picked. Download ZIP, next to it, packs those same pages into one archive, PNG, JPEG, or WebP matching the selector. Download PDF builds one file with one PDF page per image, at the same aspect ratio, which is a practical upload for a LinkedIn document post. WebP cards are embedded in that PDF as PNG so the file stays readable. Neither button invents a sixth page or moves a break. If the preview says the rest was left out, the ZIP and the PDF leave it out too.
Long image sits beside Pages in the same control. It is not a carousel. The canvas height follows the note so a chat, an email, or a full note can be one tall picture. If that height at 2× or 3× would pass the browser canvas limit, the editor warns you and offers Pages or 1× instead of saving a clipped file. Use Pages when the reader will swipe fixed cards. The Story, feed, and thumbnail guide is the separate question of which rectangle those cards should be.
When not to split
Do not split a 1200 × 630 link card into a carousel. A link preview uses one image. Put the sequence in the article and let the card state the title and the outcome. Open Graph caching only helps if that one image is the image you meant to publish.
Do not split a note because five images feel like more content. They are more taps. If the Markdown is a policy, a reference, or anything people will search later, publish the text and export one summary card.
Do not fight the preview by shrinking type until the warning disappears. The warning is the canvas telling you the note is still a document. Move the document to a URL and keep the images as the abstract.
Frequently asked questions
- How many pages will the editor export?
- Pages mode exports at most five. If the note needs more than five canvases, the rest is left out and the preview says so. Long image mode is separate: one tall canvas, blocked when that height at the chosen scale would exceed the browser canvas limit.
- Will a table header repeat on the next image?
- When the editor itself splits a pipe table, it repeats the header row and the separator on each chunk. A heading above the table does not automatically repeat. Put a heading in the Markdown wherever a later card would otherwise open on bare rows.
- Does a code block wrap?
- Lines stay on one line. A line wider than the card is clipped, and the preview warns you. Break the line in the source. A fence that is too tall is split by source line, and each chunk keeps the opening fence so the language tag survives.
- Should every carousel image use the same preset?
- Yes for a single post. Mixing a square and a portrait in one carousel makes the sequence look like two different drafts. Change preset only when you are making a separate post.