-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Specify start attribute on ordered lists #100
Comments
I don't like this and #101, and generally any feature specifically addressing HTML5. Not everyone is designing in HTML5. |
@kminchev This part of the HTML5 spec is completely backwards-compatible. What exactly is your concern? |
It is worth noting the So they are not HTML5-only. They are just resurrected in HTML5. |
I didn't know that the start attribute is the part of the Markdown spec :) BTW the start attribute also supported by ReStructuredText |
this is not the part of Markdown spec.
Markdown does not support "start" or "value" attributes all numberings are ignored. anyway I like "start" attribute and It is useful to support it optionally. |
This is specifically against the spec. |
there are Text::Markdown perl module exists (version 1.0.31) it has |
Agreed. If any HTML5 addition is going to be implemented, I suggest it being optional. |
@wkpark This is not part of the Markdown spec. It is just undefined by the spec. It used to be part of the HTML4 spec and it is part of the HTML5 spec. @scottchiefbaker Why is this against the spec? |
ReStructuredText have similar feature by default. (demo page: http://rst.ninjs.org/) and as I already said, the the source code of
If
some paragraph
(Note that in the above, quux will be numbered 4.) |
Probably, because of the following excerpt:
|
+1 on this feature request. I am constantly bitten by this "feature" of markdown. e.g. if someone makes a list of 5 things in an issue, and I want to respond to the 4th one, I'll try to copy it out for a response:
Shows up as:
This is already implemented. See this issue... It would be nice to have some way to force the numbering to start where I want it, not at 1. |
@rmjarvis that's a good point, i'll se what i can do |
@erusev just taking a quick glance at the source for this issue
To something like
All I've done is put an additional capture group round the number on the
Edit: I've added a pull request #431 that you can merge if those changes look okay. Edit: Have amended the code in this comment to return the original pattern into the |
(I think this should work) Allow parsedown to specify list start attribute (see: erusev#100 (comment))
Fixed in #431 |
According to the Markdown spec any number with a following dot could start an ordered list.
Like so:
In the HTML5 spec there is a
start
attribute onol
elements which could indicate the start of the list.So this should produce something like:
Other implementations which do that:
Thanks should go to @wkpark for revealing it in #99.
The text was updated successfully, but these errors were encountered: