Lists, especially nested lists, are a challenge to format correctly for HTML output.
§21.11.1 Understanding the problem with HTML lists
§21.11.2 Converting list formats to HTML list styles
§21.11.4 Converting list formats to HTML/XML paragraphs
§21.3.3 Converting paragraph formats with autonumbers
§34.7 Converting autonumbers for database systems