Exclude sections with lists or tables, iterations 2 & 3

Merged Marco Fossati requested to merge dev into main

Iteration 2 at 6d607604 excludes lists and tables appearing in subsections without text.

Iteration 3 05d76aea uses a regex in multiline mode to match lists at start of line or tables anywhere in the section content

The exclusion is made optional through a boolean CLI flag, activated by default.

Closes https://phabricator.wikimedia.org/T323505

Merge request reports