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

Bug with Numbered Lists and Bulleted Lists #11

Closed
josh-egan opened this issue Jun 4, 2015 · 1 comment · May be fixed by #12
Closed

Bug with Numbered Lists and Bulleted Lists #11

josh-egan opened this issue Jun 4, 2015 · 1 comment · May be fixed by #12

Comments

@josh-egan
Copy link

There appears to be a bug with list handling. I am using atom-beautify in atom, which is using tidy-markdown for markdown support.

If I start with this:

1. Do this first
2. And then this

- Bucket
- List

The first time I run tidy-markdown, I get this:

1. Do this first
- And then this
- Bucket
2. List

The above renders to a numbered list when parsed. So, as expected, the markdown is converted to this when I run tidy-markdown a second time:

1. Do this first
2. And then this
3. Bucket
4. List

Nested lists are handled correctly. The following is not modified when tidy-markdown is run.

1. Do this first
2. And then this
  - Bucket
  - List

It seems the solution to this would be to differentiate between numbered lists and bulleted lists and not attempt to merge them.

@notslang
Copy link
Owner

notslang commented Jun 6, 2015

ah, yes... this is a flaw in markdown itself:

screenshot from 2015-06-06 00 39 47

also: ref #7

I think I'm just going to switch to a common-markdown compliant parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants