marky-markdown
marky-markdown copied to clipboard
GitHub list parsing
This isn't complete by any means, but it does implement the basics of turning indentation into list levels, which is half of #165. I copied the implementation github uses as much as I could. There are certain things that markdown-it doesn't like you doing--such as calling the inline parser from a block rule--that are essential to this working properly. It's definitely possible, but it'll take another day or two of jiggery-pokery :sparkles: :tophat: :rabbit: :sparkles:.
There are going to be tons of edge cases, so I'd like some help trying to identify them for unit tests.
Oh this is awesome! Thank you!
Yes, with regard to edge cases, I think we're going to need to create some kind of list parsing torture test in test/fixtures/, and then fill it up with all kinds of malformed markdown lists 😬
It'll be amazing 😛
hey @jamestautges ! checking back in - do you need any help working on this? we'd love to see it complete and are happy to help! let us know :)
Sorry everyone. I hit an unexpectedly busy couple of days, but I should have more time this weekend. I'd like to get both of these PRs done before Monday.
no worries! was just making sure that you had what you needed, no rush :)
Alright, that should do it. It ended up being much easier than I thought once I dug into markdown-it's API. This commit includes changes to how code fences are handled in lists, so I think that might address the original issue, but I didn't test it so I'm not confident. Unit test time I guess.
Oops, broke task lists :grimacing: . I'll fix it tomorrow.
Hi @jamestautges just checking in now that the holiday season is mostly over. No pressure at all or anything, but I was wondering if you were still planning on trying to get the tests figured out? If you've lost interest and/or moved on that's totally cool; I'm excited about this change though 🎉🎉🎉 so I'm happy to take it over if you like 😄