-
Notifications
You must be signed in to change notification settings - Fork 61
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
Added Github Task Lists #86
base: master
Are you sure you want to change the base?
Conversation
pl86
commented
Sep 25, 2015
- replace "- [ ]" and "- [x]" to checkboxes
- live edit current document on click checkbox
+1 for @pl86 |
renderer.listitem = function(text) { | ||
if (/^\[ \] \s*/.test(text)) { | ||
text = '<input type="checkbox" class="gfm-checkbox"> ' + text.substr(4); | ||
} else if (/^\[x\] \s*/.test(text)) { |
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 should be case insensitive, so [x]
or [X]
can be used to check an item.
@pl86 thanks for the pull request! |
@gruehle thanks for your comments. You are right, this extension should only preview Markdown files. I just found it super easy to create something what I think may be useful. |
Waiting for the newer version with this change. :) |
Nothing new in March 2017. |
@prateekjadhwani @ezequias - I would gladly merge a pull request that added read-only support for task lists. I just don't have time to do the work myself. |
I dont think @pl86 has been active on github recently to fix the merge conflicts. And that reminds me. Is anyone still using Brackets? |