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

question(lists): blank lines in one-line nested list #39

Open
Kristinita opened this issue Feb 10, 2019 · 1 comment
Open

question(lists): blank lines in one-line nested list #39

Kristinita opened this issue Feb 10, 2019 · 1 comment

Comments

@Kristinita
Copy link

1. Summary

Does it fit markdown-style-guide next code?

1. Kira
    1. Goddess
1. Forever

Do I need empty lines between the list items?

2. Details

2.1. List

  1. Nested
  2. All lines have no more, than one line

2.2. remark

See #78 for details.

remark add warning for list in my example.

D:\SashaDebugging>remark "Kira_remark-lint__list-item-spacing+tabs+nested_list--non-valid__demo.md" --no-stdout
Kira_remark-lint__list-item-spacing+tabs+nested_list--non-valid__demo.md
  4:12-5:1  warning  Missing new line after list item  list-item-spacing  remark-lint

‼ 1 warning

remark owner refer to markdown-style-guide:

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.

3. Not helped

Yes, I read Empty lines inside lists section, but didn't find the exact answer to my question.

Thanks.

@cirosantilli
Copy link
Owner

It is my intention that your code snipped be correct blank line wise:

1. Kira
    1. Goddess
1. Forever

Just note that your initial snippet had bad spaces after list marker http://www.cirosantilli.com/markdown-style-guide/#option-list-space-mixed I would recommend instead:

1. Kira
   1. Goddess
1. Forever

From my understanding http://www.cirosantilli.com/markdown-style-guide/#empty-lines-inside-lists implies that your code is correct. Why do you think it is not enough? Every item is one line, therefore no blanks.

@cirosantilli cirosantilli transferred this issue from cirosantilli/markdown-style-guide Jul 27, 2019
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