marky-markdown icon indicating copy to clipboard operation
marky-markdown copied to clipboard

GitHub list parsing

Open jamestautges opened this issue 9 years ago • 7 comments

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.

jamestautges avatar Oct 27 '16 22:10 jamestautges

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 😛

revin avatar Oct 27 '16 23:10 revin

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 :)

ashleygwilliams avatar Nov 03 '16 19:11 ashleygwilliams

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.

jamestautges avatar Nov 04 '16 00:11 jamestautges

no worries! was just making sure that you had what you needed, no rush :)

ashleygwilliams avatar Nov 04 '16 00:11 ashleygwilliams

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.

jamestautges avatar Nov 04 '16 17:11 jamestautges

Oops, broke task lists :grimacing: . I'll fix it tomorrow.

jamestautges avatar Nov 04 '16 18:11 jamestautges

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 😄

revin avatar Jan 04 '17 16:01 revin