notslang / tidy-markdown

Beautify Markdown, fixing formatting mistakes and standardizing syntax
https://npmjs.com/package/tidy-markdown
GNU General Public License v3.0
75 stars 11 forks source link

Bullets inside numbered lists and subbullets in bullets don't beatify correctly #45

Open bbodenmiller opened 8 years ago

bbodenmiller commented 8 years ago

Notice how these do not render equivalently.

Original
1. something
1. something
  - bullet
  - bullet
1. something
1. something

hi

Beautified
1. something
1. something

  - bullet
  - bullet

1. something
1. something

hi

Original

  1. something
  2. something
    • bullet
    • bullet
      1. something
      2. something

hi

Beautified

  1. something
  2. something
    • bullet
    • bullet
  3. something
  4. something

hi

Original
- something
- something
  - bullet
  - bullet
- something
- something

hi

Beautified
- something
- something

  - bullet
  - bullet

- something
- something

hi

Original

hi

Beautified

hi

Related to an issue I filled on GitLab at https://gitlab.com/gitlab-org/gitlab-ce/issues/23972 where they are rendered even more differently.