Skip to content

Commit

Permalink
Fix markdown inline code support
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Mar 2, 2023
1 parent ec13d16 commit 263352f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JetBrainsMono4GitHub
// @namespace https://userscript.clazex.net/
// @version 2.1.0
// @version 2.1.1
// @description Change GitHub code view font to JetBrains Mono
// @license MIT
// @author Clazex
Expand Down Expand Up @@ -42,7 +42,7 @@
function applyFont(font = getFont()) {
style?.remove();
style = GM_addStyle(
`pre, code.markdown-body, .blob-code-inner, .CodeMirror-lines, .react-code-text, .diff-text, ul[aria-label="Code Navigation"] .PRIVATE_TreeView-item-content-text span { font-family: ${font}, monospace !important }`
`pre, .markdown-body code, .blob-code-inner, .CodeMirror-lines, .react-code-text, .diff-text, ul[aria-label="Code Navigation"] .PRIVATE_TreeView-item-content-text span { font-family: ${font}, monospace !important }`
+ '.blob-code-inner, .CodeMirror-lines, .react-code-text, .diff-text { font-size: 1em !important; }'
);

Expand Down

0 comments on commit 263352f

Please sign in to comment.