Page MenuHomePhabricator

Numbered/Unordered list continuation incorrect after indentation
Closed, InvalidPublic

Description

Author: nick-mediazilla

Description:
A construct of the form:

Buggy lists

  • main item
    • sub-item #1

:: indented note

  • sub-item #2

Does not render correctly. Sub-item #2 shows two bullets, rather than one.
With numbered lists, sub-item #2 restarts at "1."

There should be a way to force indented text and preformatted text to allow the
containing list to continue its formatting. This is possible in pure HTML, so
I'm guessing this is just an artifact of the current "parser".


Version: 1.3.x
Severity: normal
OS: FreeBSD
Platform: PC

Details

Reference
bz801

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:03 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz801.
bzimport added a subscriber: Unknown Object (MLST).

Here is the correct syntax for what it looks like you're trying to do:

Buggy lists

  • main item
    • sub-item #1

*: indented note

  • sub-item #2

nick-mediazilla wrote:

While the specific case below can be resolved, there are still several problems
when you embed indentation or preformatted text within a list. As another example:

Buggy lists

  • main item
    • sub-item #1

*: indented note

  • sub-item #2

Will force sub-item #2 to re-number as "1". From reading through the parser
code, it does not look like there's a way to handle this case.

If that's really what you want, then that's correct: you'd be using two separate numbered lists, separated by an
area of indentation.

If the indented comment is supposed to be indented relative to the _item_, though, this might make more sense:

  • main item
    • sub-item #1

*#: indented note

  • sub-item #2