code-hike / codehike

Build rich content websites with Markdown and React
https://codehike.org
MIT License
4.68k stars 142 forks source link

[smooth-code] Wrong line width with different font-family #79

Closed pomber closed 2 years ago

pomber commented 2 years ago

A css like this (from tailwind):

code {
  font-family: ui-monospace, SFMono-Regular, Consolas,
    "Liberation Mono", Menlo, monospace;
}

breaks the line width calculation (see code-spring>longer story)