Closed ericswpark closed 1 year ago
This issue seems to be related to issue #346.
I fixed the problem by replacing the wildcard * {}
selector with body {}
in assets/scss/partials/_base.scss
. Since I don't know why wildcard is used in the first place I am not sending a PR, this potentially breaks other stuff, works for me however :)
@mike-kfed That's a good observation. Would you mind sending a PR with your changes? I could then verify if it has any other side effects or what's the best approach of resolving this quite annoying issue.
For anyone who needs it, here's a temporary workaround:
assets/css/custom.css
* {
font-family: inherit;
}
body {
font-family: 'PingHei', 'PingFang SC', 'Helvetica Neue', 'Work Sans', 'Hiragino Sans GB', sans-serif;
}
Describe the bug Because the current font used within code blocks has variable width, it messes up formatting if lines reference each other, such as output from a compiler highlighting a bug within a line, for example.
To Reproduce Steps to reproduce the behavior:
Expected behavior Code blocks should not use variable width font
Screenshots Red arrows indicate where the caret should've been shown: