rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.73k stars 208 forks source link

Make <pre> renderer look better #183

Open tyt2y3 opened 5 years ago

tyt2y3 commented 5 years ago

Where in the docs did you come across this? Section 4.4 Rendering with JavaScript

Describe what about it does not make sense Rendered universe looks rectangular

Why does it not make sense? It looks like square in subsequent section, making it hard to compare.

How could we improve it? Add the following CSS:

  pre {
    line-height: 10px;
    font-size: 16.5px;
  }

Now rendered universe will look approximately square.

Screenshot at 2019-08-08 15-28-05