-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Github Task Lists #587
Github Task Lists #587
Conversation
Add support for Github Task Lists under the gfm flag. Changes to API * list(*string* body, *boolean* ordered, *boolean* taskList) * listitem(*string* text, [*boolean* checked]). `checked` is defined when you have a list item which starts with `[ ] ` or `[x] `.If defined its a boolean depending on whether the `x` is present. When checked is defined we add a input type type `checkbox` to the list item and add the class `task-list-item-checkbox`. `taskList` is true if a list has any list items where `checked` is defined. When true we add the class `task-list` to the list. Resolves markedjs#107
@jhollingworth |
I had an implementation of this that I reverted because I was originally completely against further GFM extras. I thought I had lost it when my laptop bricked, but I realized it wasn't on a separate unpushed branch. It's in the git history: #107 I'll compare these two. |
@@ -27,6 +27,7 @@ var block = { | |||
text: /^[^\n]+/ | |||
}; | |||
|
|||
block.checkbox = /^\[([ x])\] +/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to GFM docs [v]
is a valid way to indicate a task is complete as well.
@jhollingworth thanks for starting with the lexer as that fits my use case. |
What's happening with this? |
Will this make it to core? Any ETA? |
Permalink are now created for notes. GFM TaksLists are supported now. :) Thanks to [this](markedjs/marked#587) PR.
Any chance of this getting pulled in in the near future? Would love to have checkboxes available in ipython notebooks, and they're waiting on it to be implemented here. |
would love to see this too |
Any updates on this? |
Checklist feature is an important feature for wekan project... |
Hi! Any chance this will get merged? We would like top pick up this fix for VS Code. |
This project is definitely dead. I merged this in a own fork and use that for markright |
To reference myself above: Many users have migrated from @chrisdias @richarddavenport |
Thank you, @styfle, I had missed your comment. Now I can finally unsubscribe from this thread. |
I guess I'm going to give up too and switch to The negligence of the maintainers here is unacceptable. I've waited over a year. |
See #956 Focusing on CommonMark and GFM specifications, without extensions (task lists in GFM are an extension not part of core). Cleaning house and assessing the damage. If this gets implemented it will probably be through extension via open/closed. Thanks, and apologies for the inconvenience. |
Reopening as things have changed a bit. We are looking to support GFM, which is only CommonMark with extensions. We have two test beds at present one for CommonMark the other for GFM. There are two failing tests (both examples) in the task list test suite. Can we verify this solution causes those to pass? |
@@ -211,7 +212,8 @@ This code will output the following HTML: | |||
- codespan(*string* code) | |||
- br() | |||
- del(*string* text) | |||
- link(*string* href, *string* title, *string* text) | |||
- link(*string* href, *string* title, *string* text, [*boolean* checked]). | |||
- `checked` only defined when `gfm` is `true` and there is a check box at the start of the list item (e.g. `* [ ] foo`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file was moved to USING_PRO.md. and is causing merge conflicts.
thanks for the creator and maintainers' job, I hope I can see checkbox in my project,thank you |
@jhollingworth Are you still interested in working on this PR? |
Going to go ahead and close as overcome by events. If you would like to continue working toward this goal:
|
Ping; I want to show that I'm still interested in this PR. |
Looks like they were using 0.3.0 |
Add support for Github Task Lists under the gfm flag.
Changes to API
checked
is defined when you have a list item which starts with[ ]
or[x]
.If defined its a boolean depending on whether thex
ispresent. When checked is defined we add a input type type
checkbox
tothe list item and add the class
task-list-item-checkbox
.taskList
is true if a list has any list items wherechecked
isdefined. When true we add the class
task-list
to the list.Resolves #107