Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Numbered lists that start from a specific number #377

Closed
noam-honig opened this issue Apr 19, 2017 · 3 comments
Closed

Use Numbered lists that start from a specific number #377

noam-honig opened this issue Apr 19, 2017 · 3 comments
Assignees

Comments

@noam-honig
Copy link

When I use numbered list, it always starts from 1. I want it to be able to start from 5 or any number I choose.

I get that behavior using MarkDig in C# and would love to have it here as well.

To my understanding also http://commonmark.org/ defines this.

How can I make this work using showdown?

  1. noam
  2. yael
Some code
  1. red
  2. blue
@tivie
Copy link
Member

tivie commented Apr 19, 2017

humm... you can only do that by hijacking the list parser through an extension... but the list parser is very complex, so it's no easy task

@tivie
Copy link
Member

tivie commented Oct 16, 2017

Github supports this feature (and it's even mentioned in the original spec) so it will be implemented in the next minor release.

@tivie
Copy link
Member

tivie commented Oct 24, 2017

Implemented on 9cdc35e and should be available next release @ v1.8.0.


As you know, ShowdownJS is a free library and it will remain free forever. However, maintaining and improving the library costs time and money. Currently, we're looking to improve showdown with automated tests in all browsers and a proper domain and webpage. 500$ should be enough to to keep showdown testing framework running for a year or two.

If you like our work and find our library useful, please donate through Pledgie or directly through paypal!! Your contribution will be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants