-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Tab indented list item causes list-item-spacing
error for all list items
#78
Comments
list-item-spacing
error for all list itemslist-item-spacing
error for all list items
Yup, that’s by design, you can turn it off though (in fact, that’s what I’m often doing!) |
An indented list item is not an empty line though. It's still part of the list. |
This rule switches based on whether there are list-items with more than one lines (not necessarily blank or empty lines), or not. Or are you saying that the second list-item is part of the upper list (and not a new, nested list)? In that case, I don’t believe so (the second is preceded by a - [Java](https://github.com/akullpp/awesome-java)
- [RxJava](https://github.com/eleventigers/awesome-rxjava)
- [Kotlin](https://github.com/KotlinBy/awesome-kotlin)
- [RxJava](https://github.com/eleventigers/awesome-rxjava)
- [OCaml](https://github.com/rizo/awesome-ocaml) Yields: |
Shouldn't that be a sign that the rule is broken. |
I'm saying that it makes no sense not to allow: - [Java](https://github.com/akullpp/awesome-java)
- [RxJava](https://github.com/eleventigers/awesome-rxjava)
- [OCaml](https://github.com/rizo/awesome-ocaml) The rule, from its description, is meant to prevent cases like: - [Java](https://github.com/akullpp/awesome-java)
- [RxJava](https://github.com/eleventigers/awesome-rxjava)
- [OCaml](https://github.com/rizo/awesome-ocaml) |
Pff, we’re talking about style here! It’s personal!
...is because I changed my preferences. I really like the rule for readability in markdown, but I don’t like how the extra lines render to HTML, such as on GH.
I’m open to changing the description, let me know if you have suggestions! |
I get it's about style, but the rule is being very inconsistent... What's the correct way to do an indented list item then? |
I feel the confusion for this will pass once GH-81 lands, so I’m deferring talk (if still required) to that place! According the markdown-style-guide, any list-item which spans more than one line, taints the whole list, and requires it to have a blank line between each item. |
I don't see how that is related at all. I explicitly turned this rule on and got confused by its unintuitive behavior.
Sometimes it's better to be intuitive than "correct". But doesn't matter, I'll just fork the rules I don't agree with. |
You’re right, I added a better description! |
I’d be glad to maintain take care of the non-awesome-related ones in this project 👍 |
Sure, will do a PR at some point, but I don't have time for doing those rules right now. |
@woorm, I opened the issue in official markdown-style-guide repository. New lines after list items not needed for sindresorhus example. Thanks. |
Fixture
Result
No errors when the
RxJava
item is removed.The text was updated successfully, but these errors were encountered: