diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-03-06 17:23:33 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-03-06 17:23:33 +0100 |
commit | d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538 (patch) | |
tree | 8fc6325c26cc2568031adf61b5e797e2bf061959 /appendices | |
parent | Fix list-groups in text browsers (diff) | |
download | devmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.tar.gz devmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.tar.bz2 devmanual-d7fd191af16b7ebe32ea13d5bef2c7ef1f0da538.zip |
devbook-guide: Restore example for nested lists.
This partially reverts commit 491304c.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'appendices')
-rw-r--r-- | appendices/devbook-guide/text.xml | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/appendices/devbook-guide/text.xml b/appendices/devbook-guide/text.xml index 26de10e..51e8a8d 100644 --- a/appendices/devbook-guide/text.xml +++ b/appendices/devbook-guide/text.xml @@ -465,18 +465,48 @@ that you must close all tags including list items unlike in HTML. <p> Definition lists (<c><dl></c>) are also supported. Please note that -neither the definition term tag (<c><dt></c>) nor the definition data tag -(<c><dd></c>) accept any other block level tag such as paragraphs or -admonitions. A definition list comprises: +the definition term tag (<c><dt></c>) does not accept any other block +level tag such as paragraphs or admonitions. A definition list comprises: </p> <dl> <dt><c><dl></c></dt> <dd>A <b>D</b>efinition <b>L</b>ist Tag containing</dd> <dt><c><dt></c></dt> - <dd><b>D</b>efinition <b>T</b>erm Tags,</dd> + <dd><b>D</b>efinition <b>T</b>erm Tags</dd> <dt><c><dd></c></dt> - <dd>each followed by one or more <b>D</b>efinition <b>D</b>ata Tags.</dd> + <dd>and <b>D</b>efinition <b>D</b>ata Tags.</dd> +</dl> + +<p> +The following example copied from +<uri link="https://www.w3.org/TR/REC-html40/struct/lists.html">w3.org</uri> +shows that lists may also be nested and different list types may be used +together: +</p> + +<dl> + <dt>The ingredients:</dt> + <dd> + <ul> + <li>100 g flour</li> + <li>10 g sugar</li> + <li>1 cup water</li> + <li>2 eggs</li> + <li>salt, pepper</li> + </ul> + </dd> + <dt>The procedure:</dt> + <dd> + <ol> + <li>Mix dry ingredients thoroughly.</li> + <li>Pour in wet ingredients.</li> + <li>Mix for 10 minutes.</li> + <li>Bake for one hour at 300 degrees.</li> + </ol> + </dd> + <dt>Notes:</dt> + <dd>The recipe may be improved by adding raisins.</dd> </dl> </body> |