Bullets inside numbered lists render incorrectly

Summary

Depending on the spacing in your Markdown, bullets inside number lists don't render correctly. This is a problem because atom-beatify beatifies Markdown to a format that GitLab does not like.

Steps to reproduce

  1. Create a Markdown file as follows:
1. something
1. something
  - bullet
  - bullet
1. something
1. something

hi

1. something
1. something

  - bullet
  - bullet

1. something
1. something

hi

Expected behavior

While the spacing here is different they should render the same. For example, GitHub renders the bullets correctly: https://gist.github.com/bbodenmiller/bf42f9ef0e767ccd366e8b203d4ed9c0 (but has some other spacing issue)

Actual behavior

They do not render the same:

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

hi

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

hi

Edited by Ben Bodenmiller