Skip to content

Lists

Ordered and unordered lists can be created using the ul and ol primitives with list items li:

xml
<ol>
  <li>Item One</li>
  <li>
    A nested list:
    <ul>
      <li>Nested Item One</li>
    </ul>
  </li>
  
  <li>Item Two</li>
</ol>

Any style attribute (block or inline), for example font-size or width etc. can have the prefix marker- attached to its start, in which case a list primitive will apply the styling to its bullet prefix. For example:

xml

<styles>
  <ul>
    <child name="li">
      <marker-padding-right>8pt</marker-padding-right>
      <marker-background-color>blue</marker-background-color>
    </child>
  </ul>
</styles>

or

xml
<ul>
  <li style="marker-min-width=12pt marker-font-size=12pt" font-size="8pt">Item One</li>
  <li>Item Two</li>
</ul>