githubnext / githubnext/monaspace

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

Open
#379 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
19.6k
Forks
322
PR merge metrics
No merged PRs in 30d

Description

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:

https://github.com/user-attachments/assets/e09cf31e-9ff2-4cb6-a349-6b193ea507b8

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.