Skip to content

Use start= attribute of <ol> to enable numbered lists that start with non-1 digits #66

Open
@jywarren

Description

@jywarren

(ref publiclab/PublicLab.Editor#128)

In GitHub Markdown, there's a nice feature where you can start a list with a non-1 digit and it starts numbering there. As a step in that direction, when parsing Markdown lists, can we not convert to 1,2,3,4 automatically? The megamark parser should be able to read it anyways, so if we take a list like:

3. hi
4. hi
5. hi

...is there any way to preserve that numbering while in rich mode? Perhaps by storing the number in a <li data-numeral="3"> type attribute?

Just by way of example:

  1. hi
  2. hi
  3. hi

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions