From 1eaa4590ceee74ca82162cfbcd7f417d35dacd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= <john@ankarstrom.se> Date: Fri, 29 Jan 2021 23:58:05 +0000 Subject: Add support for mixed nested lists That is, <ul> within <ol> or vice versa. --- test.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'test.html') diff --git a/test.html b/test.html index 212c830..af80b0b 100644 --- a/test.html +++ b/test.html @@ -1,6 +1,6 @@ <h1>Em example</h1> <p> -This is an example of <i>Em</i> (<a href="http://example.com">link</a>). +This is an example of <i>em</i> (<a href="http://example.com">link</a>). </p> <ul> <li>Here is an @@ -17,13 +17,19 @@ ordered list item. <ul> <li>Here is a list </li><ul> -<li>With another list inside it [<a href="#refa">a</a>] +<li>With another list inside it [<a href="#ref1">1</a>] </li> </ul> </ul> <ol> -<li value="1" id="ref1">http://example.com -</li><li value="a" id="refa">Reference list item +<li value="1">Here is a mixed nested list +</li><ul> +<li>An unordered item +</li> +</ol> +</ol> +<ol class="reflist" style="font-size: small;"> +<li value="1" id="ref1">Reference list item </li> </ol> <dl> -- cgit v1.2.3