-
Notifications
You must be signed in to change notification settings - Fork 11
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 for numeric lists #7
Comments
hmm... that's pretty weird, but I'm not sure if it's tidy-markdown. it might be marked, or an edge case with the markdown language. a quick test with atom's markdown preview shows this: and the same issue appears with this input: - item
- item
- item
1. one
2. two
3. three |
Yup! Right on. See this issue for Marked: markedjs/marked#55 Basically, it treats it as a single list, since there is no header or any text separating the two lists. Input# heading 1
- item
- item
- item
## heading 2
1. one
2. two
2. three OutputThis works! # heading 1
- item
- item
- item
## heading 2
1. one
2. two
3. three Gorgeous. |
thanks for finding that - I think I'm going to enable smart-lists and/or switch to a common-markdown compliant parser, since marked doesn't really follow any standard. |
Input
Preview
Expected Output
Current (wrong) Output
Notice how it removes the list item's numbering (1,2,3.).
/cc Glavin001/atom-beautify#292
The text was updated successfully, but these errors were encountered: