Menu

Put ASCII Art in Your README Without It Falling Apart
📰

Put ASCII Art in Your README Without It Falling Apart

DEV Community: github·Joan Bernier·about 6 hours ago
#GMOvdv2C
#devtogithub#technology#devto#dev#readme
Long article (806 words) — no AI summary yet.
Reading 0:00
15s threshold

A README is one of the few places where a picture made of text looks like it belongs: a small portrait or mascot above the install instructions, in the same characters as the code below it.

The catch is how it gets there. You make the art in an ASCII art maker, copy it, paste it into the README, and the picture arrives bent out of shape. This post walks through the steps that keep it intact.

Why it breaks

ASCII art is drawn on a grid where every character is the same width, which is what a monospace font gives you. Ordinary Markdown text is shown in a proportional font, and lines that follow each other are read as running text, so the grid is gone before the reader sees it.

People hit this wall everywhere, not only in READMEs. A poster on r/ASCII asked " How to paste ASCII art? " and wrote:

"Whenver I paste it, it just gets messed up, what do I do? Sry if this is a common question"

The fix is to tell Markdown to leave the text alone.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.