Skip to content

Task lists? #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 2 tasks
dcutting opened this issue Jul 19, 2018 · 3 comments
Open
1 of 2 tasks

Task lists? #136

dcutting opened this issue Jul 19, 2018 · 3 comments

Comments

@dcutting
Copy link

Is there any intention to support task lists like this?

  • item
  • 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!

@fletcher
Copy link
Owner

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.

@dcutting
Copy link
Author

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.

@fletcher
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants