Skip to content

Nested lists of roman numerals that differ in casing fail to parse properly #884

@manutiedra

Description

@manutiedra

If I try to parse this:

1. **Introduction to Legal Principles**
   1) Historical Context
   2) Core Doctrines
      i. Doctrine of Precedent
      ii. Doctrine of Equity
   3) Sources of Law
2. **Civil Procedure**
   A) Pleadings and Motions
      a. The Complaint
      b. The Answer
      c. Pre-trial Motions
   B) Discovery Process
   C) Trial Proceedings

I get the proper AST:

Image

However, if I change the list before the roman numerals in lowercase to a list with roman numbers in uppercase like this:

1. **Introduction to Legal Principles**
   I) Historical Context
   II) Core Doctrines
      i. Doctrine of Precedent
      ii. Doctrine of Equity
   III) Sources of Law
2. **Civil Procedure**
   A) Pleadings and Motions
      a. The Complaint
      b. The Answer
      c. Pre-trial Motions
   B) Discovery Process
   C) Trial Proceedings

the AST generated is wrong, as it didn't create a third level for the list with lowercase roman numerals:

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions