githubnext / githubnext/monaspace
Does not behave as monospaced in GitHub file editor, markdown code blocks etc
- Lingua principale
- Shell
- Stelle
- 19.6k
- Fork
- 322
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
We've all seen wonky ascii diagrams like this and assumed LLMs aren't counting the character columns correctly when generating them:
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo il problema di allineamento nell’editor di file di GitHub e nei blocchi di codice Markdown renderizzati usando Monaspace Neon, quindi esamina il CSS e le metriche del carattere coinvolti. Confronta il comportamento con un carattere realmente monospaziato; il lavoro è completato quando il movimento del cursore e le colonne dei caratteri sono allineati in modo coerente sia durante la modifica sia nelle viste renderizzate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- css
- Ambito
- design
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100