Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#379 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
css
領域
design

調査の方向性

まず、Monaspace Neonを使用してGitHubのファイルエディターとレンダリングされたMarkdownコードブロックでアライメントの問題を再現し、次に関係するCSSとフォントメトリクスを調査します。実際の等幅フォントと動作を比較します。編集時とレンダリングされたビューの両方で、カーソルの移動と文字の列が一貫して揃えば完了です。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Shell
スター
19.6k
フォーク
323
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

githubnext/monaspace のほかの issue

githubnext/monaspace の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。