From f9c8a885b03bb6200abfbceb8e08d21b789398dc Mon Sep 17 00:00:00 2001 From: Chris Harrelson <3453258+chrishtr@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:25:06 -0800 Subject: [PATCH] Clarify some text about layout modes for inline and block (#1373) * none * none --- book/layout.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/layout.md b/book/layout.md index 7da85cc3b..59edbac3e 100644 --- a/book/layout.md +++ b/book/layout.md @@ -232,9 +232,9 @@ from `node.children` (in the HTML tree) and writes to `self.children` So we have two ways to lay out an element: either calling `recurse` and `flush`, or this `layout_intermediate` function. To determine which one a layout object should use, we'll need to know what kind -of content its HTML node contains: text and text-related tags like -``, or blocks like `

` and `

`. That function looks something -like this: +of content its HTML node contains: *inline* text and text-related tags like +``, or *blocks* like `

` and `

`. Let's add a `layout_mode` method +that computes which is which: ``` {.python} class BlockLayout: