GitHub uses the following CSS font stack to display code:
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
Chrome will use SFMono-Regular
when that font is installed locally, but Firefox will not. Workaround: Add the following CSS to your Firefox profile's userContent.css
file:
@font-face {
font-family: SFMono-Regular;
src: local("SFMono-Regular");
}
Before | After |
---|---|
👆
👇