MultiMarkdown-6 icon indicating copy to clipboard operation
MultiMarkdown-6 copied to clipboard

Task lists?

Open dcutting opened this issue 7 years ago • 3 comments

Is there any intention to support task lists like this?

  • [ ] item
  • [x] done

I've searched through the issue archives but can't find any reference to them. Seems like one of the few things missing from MMD.

Thank you for an amazing format, and library for parsing it!

dcutting avatar Jul 19 '18 09:07 dcutting

I thought about doing something like this years and years ago (before anyone else did, actually), but I'm still not convinced it's actually something I want to implement.

You can already use that syntax:

* [ ] foo
* [X] bar

And the meaning is pretty clear without substituting check boxes.

fletcher avatar Jul 30 '18 19:07 fletcher

Hi @fletcher , thanks for your reply.

I agree that the syntax is pretty clear. All I'm trying to do is nicely style the syntax in a text editor, but having looked a little closer at it, I could probably do this by checking for a link token appearing immediately after a bullet token or something like that and styling accordingly (by making it monospace, for instance).

I'll give this a go.

dcutting avatar Jul 30 '18 20:07 dcutting

You could also check for enumerated list marker as well, but yes -- if your highlighting engine allows a lookback like that, it should be relatively straightforward.

fletcher avatar Jul 30 '18 20:07 fletcher