Skip to content

Use different indexes for nested numbered list #2158

Open
@loffa

Description

@loffa

Feature request

What problem does this feature solve?

Currently, vuepress does not number nested lists with other symbols. This can lead to a bit of confusion when creating step-by-step instructions.
Consider the following block of Markdown

1. A numbered list
  1. A nested numbered list
  2. Which is numbered
2. Which is numbered

Both normal numbers are used to describe the list in a list and vuepress renders this correctly, restarting the numbering on the indented block.

Using GitHub-rendering here:

  1. A numbered list
    1. A nested numbered list
    2. Which is numbered
  2. Which is numbered

We can see that they use roman numbering for the inner list. I have not been able to do this using the built in render in vuepress. Currently testing with the default template.

Proposed changes

Nubered list indented from previous list should notate the list using other symbols or by appending the outer lists number as well (1.1, 1.2 etc).

Inner list can use letters (1.a 1.b), roman literals (i ii iii iv) or something else.

Are you willing to work on this yourself?

I am not proficient in the inner workings of this package and therefor I might struggle with the implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions