New experiment edit

  • First item
  • Second item
indented sentence 1.
indented sentence 2.
  • Third item

Various test cases edit

The following four test cases represent an unordered list of two items, the first of which has two sub-items indented by one level. The four test cases are labeled A through D. They differ in whether the list items are separated with a linespace (version A) or not (versions B-D), and in whether they use "**", ":*" or "*:" to carry out the indenting (versions A, B and C, respectively). Visually, the "**" and ":*" versions (versions B and C) look identical. The spaced version A shows two bullet points rather than one, and version D with "*:" has no bullet point.

Version A: Linespaced, indented with ** edit

This sentence is again normal text. The following unordered list is linespaced, and uses "**" for indenting.

  • Sentence 1A is the first item of the top-level unordered list.
    • Sentence 2A is the first item of an unordered sublist of top-level list item 1.
    • Sentence 3A is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4A is the second item of the top-level unordered list.

Version B: Unspaced, indented with ** edit

This sentence is normal text. The following unordered list is unspaced, and uses "**" for indenting.

  • Sentence 1B is the first item of the top-level unordered list.
    • Sentence 2B is the first item of an unordered sublist of top-level list item 1.
    • Sentence 3B is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4B is the second item of the top-level unordered list.

Version C: Unspaced, indented with :* edit

This sentence is again normal text. The following unordered list is unspaced but indented before the asterisk (:*).

  • Sentence 1C is the first item of the top-level unordered list.
  • Sentence 2C is the first item of an unordered sublist of top-level list item 1.
  • Sentence 3C is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4C is the second item of the top-level unordered list.

Version D: Unspaced, indented with *: edit

This sentence is again normal text. The following unordered list is unspaced but indented after the asterisk (*:).

  • Sentence 1D is the first item of the top-level unordered list.
    Sentence 2D is the first item of an unordered sublist of top-level list item 1.
    Sentence 3D is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4D is the second item of the top-level unordered list.

Present and potential outcomes of the script edit

This section shows the present outcome of the script and two potential outcomes. Visually, the present outcome and the first potential outcome are identical; they both look like a single unordered list of four items.

Present script outcome edit

This sentence is again normal text. The following unordered list is the present outcome of the script; compare with versions C and D above. Here, the sublist items are in separate unordered lists within separate DIV elements.

  • Sentence 1E is the first item of the top-level unordered list.
  • (Indent 1) Sentence 2E is the first item of an unordered sublist of top-level list item 1.
  • (Indent 1) Sentence 3E is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4E is the second item of the top-level unordered list.

First potential script outcome edit

This sentence is again normal text. The following unordered list is a possible outcome of the script. The sublist items are integrated into the surrounding list, making a single unordered list of four items.

  • Sentence 1F is the first item of the top-level unordered list.
  • (Indent 1) Sentence 2F is the first item of an unordered sublist of top-level list item 1.
  • (Indent 1) Sentence 3F is the second item of an unordered sublist of top-level list item 1.
  • Sentence 4F is the second item of the top-level unordered list.

Second potential script outcome edit

This sentence is again normal text. The following unordered list is another possible outcome of the script. This version keeps the sublist items in their own DIV elements, but replaces their enclosing list with a simple dot mark.

  • Sentence 1G is the first item of the top-level unordered list.

• (Indent 1) Sentence 2G is the first item of an unordered sublist of top-level list item 1.

• (Indent 1) Sentence 3G is the second item of an unordered sublist of top-level list item 1.

  • Sentence 4G is the second item of the top-level unordered list.