-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Support starting numbered lists with arbitrary number #211
Comments
Thanks for the issue. However, since this will change the output and probably break some documents, this can't be done in the 1.x release and has to wait for the 2.x release. |
@gettalong 2.x would be great 👍 |
👍 +1 particularly for inline quoted responses. When someone writes:
And I respond with a quoting system that prefixes the input with
The result is undesirable:
Normal sized
My workaround hack is to wrap the quoted list items in backticks to preserve the typed value. :( Sadly, other users do not know (or want to know) such hacks. |
👍 |
Another option that I just found is to use an IAL declaration before the list. I was looking for this exact feature and was sad (at first) to learn that it isn't supported. However, the following works as desired:
Output:
Tested with this online Kramdown editor: https://kramdown.herokuapp.com/ This doesn't solve the problem for the average user who doesn't know much markdown, but it's a workaround for people using Kramdown in cases like Jekyll sites and whatnot. |
@chimericdream That is awesome, thank you very much! 👍 However for quoting multiple list entries, this is a lot of overhead: > {:start="42"}
> 42. Question
Nobody knows!
> {:start="2016"}
> 2016. Current Year
YOLO |
@winniehell I completely agree. I think it'd be awesome to have this baked into Kramdown core so that the list starts at the number of the first bullet. But for bloggers and power users, it's good to know that there is a fairly straightforward workaround until Kramdown 2.0 is final. |
Closed because feature request issues are now tracked through a dedicated project - see https://github.com/gettalong/kramdown/projects/1 |
@cup There is nothing to fix here. It currently works as designed and this issue talks about changing the design which would be a breaking change. |
For anyone using GitHub Pages, you can simply add this to
you dont even have to declare the plugin in http://github.com/github/pages-gem/blob/fb5c3f2/lib/github-pages/plugins.rb#L9 reference: |
Allow numbered lists to have a defined offset like in CommonMark.
Current output:
Expected:
Especially useful in quotes:
should really be
The text was updated successfully, but these errors were encountered: