developit / snarkdown

:smirk_cat: A snarky 1kb Markdown parser written in JavaScript
http://jsfiddle.net/developit/828w6t1x/
MIT License
2.28k stars 110 forks source link

Add support for nested lists #110

Closed stutrek closed 1 year ago

stutrek commented 1 year ago

Thank you for this library, it's the best regex barf I've worked with in years.

This PR adds support for sublists in the standard markdown way:

- lists
  - within lists
- also
  1. different types of sublists

I am embarrassed that it changes the output of one test, but it's only a whitespace change so rendered HTML should remain the same.

Fixes #104

stutrek commented 1 year ago

Closing to make a new PR from our nested-lists branch. We're going to iterate, we will be happy to talk about what we have when you have time.