How to Fix Hugo's iOS Code-Block Text-Size Rendering Issue
Lately, I’ve been coming across many blogs that have weird font-size rendering issues for code blocks on iOS. Basically, in a code snippet, the text-size would sometimes be much larger for some lines than others.
Below is a screenshot of the issue from a website where I’ve seen this occur. I found this example from Hacker News while I was on phone.
As you can see, the text-size isn’t uniform across code block lines. I’ve seen this issue across many blogs that compile markdown files to HTML such as sites built using Hugo, Jekyll, or even custom md-to-html shell scripts.
评论
?
参与讨论