Skip to content

Does not behave as monospaced in GitHub file editor, markdown code blocks etc #379

@anentropic

Description

@anentropic

We've all seen wonky ascii diagrams like this and assumed LLMs aren't counting the character columns correctly when generating them:

Image

That's partly true. But when I went to edit the diagram by hand I found that I couldn't make the lines align.

In fact if I navigate the cursor up and down across the lines it takes a zig-zag path!

This is not supposed to happen with a monospaced font!

The issue appears to be the "Monaspace Neon" font that GitHub are using is not behaving as monospaced. After editing the CSS to get an actual monospaced font the chars align in true columns and I was able to edit the diagram into shape. But unfortunately after saving it still renders as per the screenshot at the top - yes, that's the 'fixed' version as rendered in Monaspace Neon.

See this video:

Screen.Recording.2026-04-08.at.17.26.51.mov

Non-fixed-width columns seems like a serious flaw for something supposed to be a monospace font?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions