From 4cc01219fb9e0e41f05316ffc37f8a027ed7a9c1 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 10 Feb 2018 02:01:32 -0700 Subject: [PATCH] document how to support the ordered list numeration styles --- docs/modules/ROOT/pages/style-guide.adoc | 47 +++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/style-guide.adoc b/docs/modules/ROOT/pages/style-guide.adoc index fc69f67..e1a48e4 100644 --- a/docs/modules/ROOT/pages/style-guide.adoc +++ b/docs/modules/ROOT/pages/style-guide.adoc @@ -55,7 +55,52 @@ Here's how it might appear when the title is displayed as text: WARNING: Watch out! -=== Task lists +=== Ordered List Numeration Styles + +The browser automatically numbers ordered lists and selects a numeration style by list depth in the following order: decimal, lower-alpha, lower-roman, upper-alpha, upper-roman. + +AsciiDoc allows the author to override the numeration style for an ordered list. +Here's an example of that output: + +[source,html] +---- +
+
    +
  1. a

  2. +
  3. b

  4. +
  5. c

  6. +
+
+---- + +In order to support this customization, you must assign the list-style-type property to the following classes on the
    element in your stylesheet. + +|=== +|
      class |list-style-type property value + +|arabic +|decimal + +|decimal +|decimal-leading-zero + +|loweralpha +|lower-alpha + +|lowergreek +|lower-greek + +|lowerroman +|lower-roman + +|upperalpha +|upper-alpha + +|upperroman +|upper-roman +|=== + +=== Task Lists A task list is an unordered list with items that are prefixed with a checkbox marker (checked or unchecked). Here's an AsciiDoc source example that produces a task list: -- 2.11.0