Skip to content

Task support #68

@tommyengstrom

Description

@tommyengstrom

I would like to support tasks, just as we have available here in github:

  • Like this
  • and this

I was hoping to be able to do this using the extension module but as far as I understand it that can't be done. - [ ] ends up being parsed as a broken link. Is is possible to do this as an extension?

If not, and if you're interested in having this feature, can you give me some hint on how to add it?

in GFMD it seems there is (somewhat shaky) support for task in numbered lists, e.g.

1. [ ] Numbered task
2. not numbered
3 [x] completed 

renders as

  1. Numbered task
  2. not numbered
    3 [x] completed

I never tried that before right now, I wouldn't implement it unless I had to.

However, the Block constructor for Unordered lists is UnorderedList (NonEmpty [Block a]), but tasks are only really supported in lists. The natural way seem to be wrapping the Block a ref in something that can tell if it a normal block, unfinished task, or finished task. Is there a better solution? Would that solution be accepted?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions