From 835d0a9d4eab26d11a36cdd60420e8bc30de672d Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Wed, 26 Aug 2020 08:37:30 -0700 Subject: [PATCH] Use tags for all images instead of Markdown image links. --- asset/style.scss | 3 ++- book/classes.md | 2 +- book/evaluating-expressions.md | 2 +- book/inheritance.md | 4 ++-- book/introduction.md | 4 ++-- book/parsing-expressions.md | 4 ++-- book/types-of-values.md | 2 +- site/classes.html | 3 +-- site/evaluating-expressions.html | 3 +-- site/inheritance.html | 6 ++---- site/introduction.html | 6 ++---- site/parsing-expressions.html | 6 ++---- site/style.css | 3 ++- site/types-of-values.html | 3 +-- 14 files changed, 22 insertions(+), 29 deletions(-) diff --git a/asset/style.scss b/asset/style.scss index ecf7bde1..5f7df193 100644 --- a/asset/style.scss +++ b/asset/style.scss @@ -377,7 +377,8 @@ aside { margin: 20px 0; } - p:first-child { + p:first-child, + img:first-child { margin-top: 4px; } diff --git a/book/classes.md b/book/classes.md index ece14a04..8633be22 100644 --- a/book/classes.md +++ b/book/classes.md @@ -83,7 +83,7 @@ stamina. diff --git a/book/inheritance.md b/book/inheritance.md index 0b4b7be2..f4cc1399 100644 --- a/book/inheritance.md +++ b/book/inheritance.md @@ -66,7 +66,7 @@ instances contains the set of all BostonCream instances since every BostonCream is also a Doughnut. So BostonCream is a subclass, and a subtype, and its instances are a subset. It all lines up. -![Boston cream <: doughnut.](image/inheritance/doughnuts.png) +Boston cream <: doughnut. @@ -610,7 +610,7 @@ implemented... diff --git a/book/introduction.md b/book/introduction.md index 13fec0d7..9a56137a 100644 --- a/book/introduction.md +++ b/book/introduction.md @@ -200,7 +200,7 @@ Yacc wasn't the first of its ilk, which is why it's named "Yacc" -- *Yet Another* Compiler-Compiler. A later similar tool is [Bison][], named as a pun on the pronunciation of Yacc like "yak". -![A yak.](image/introduction/yak.png) +A yak. [bison]: https://en.wikipedia.org/wiki/GNU_bison @@ -374,7 +374,7 @@ compile future versions of itself and you can discard the original one compiled from the other compiler. This is called **"bootstrapping"** from the image of pulling yourself up by your own bootstraps. -![Fact: This is the primary mode of transportation of the American cowboy.](image/introduction/bootstrap.png) +Fact: This is the primary mode of transportation of the American cowboy. diff --git a/book/parsing-expressions.md b/book/parsing-expressions.md index 8055d039..c7e7f93c 100644 --- a/book/parsing-expressions.md +++ b/book/parsing-expressions.md @@ -404,7 +404,7 @@ Confusingly, we also use direction metaphorically when talking about "high" and reach the lowest-precedence expressions first because they may in turn contain subexpressions of higher precedence. -![Top-down grammar rules in order of increasing precedence.](image/parsing-expressions/direction.png) +Top-down grammar rules in order of increasing precedence. CS people really need to get together and straighten out their metaphors. Don't even get me started on which direction the stack is supposed to grow. @@ -697,7 +697,7 @@ issue. Simple, fast error recovery is fine. You know you want to push it. -![A big shiny "PANIC" button.](image/parsing-expressions/panic.png) +A big shiny 'PANIC' button. diff --git a/book/types-of-values.md b/book/types-of-values.md index 832cadf5..2bad6a69 100644 --- a/book/types-of-values.md +++ b/book/types-of-values.md @@ -204,7 +204,7 @@ data between Lox's dynamic world and C's static one. @@ -818,8 +817,7 @@

6 . 3

6 . 3 . 1Panic mode error recovery

Of all the recovery techniques devised in yesteryear, the one that best stood the test of time is calledsomewhat alarmingly“panic diff --git a/site/style.css b/site/style.css index cfd42e26..0fda53bc 100644 --- a/site/style.css +++ b/site/style.css @@ -768,7 +768,8 @@ aside { aside p { margin: 20px 0; } -aside p:first-child { +aside p:first-child, +aside img:first-child { margin-top: 4px; } aside p:last-child { diff --git a/site/types-of-values.html b/site/types-of-values.html index 35dbc4a7..d7eba09a 100644 --- a/site/types-of-values.html +++ b/site/types-of-values.html @@ -335,8 +335,7 @@

18& type. Any time we call one of the AS_ macros, we need to guard it behind a call to one of these first. With these eight macros, we can now safely shuttle data between Lox’s dynamic world and C’s static one.

-