-
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
GFM: my task lists not rendered #689
Comments
I think task lists are not considered part of GFM, but as an additional feature of GitHub, just like auto-linking of commits/users/issues references. |
I was looking for this today as well. Would love to see it added here! |
I found this #107 , It works var renderer = new marked.Renderer();
renderer.listitem = function(text) {
if (/^\s*\[[x ]\]\s*/.test(text)) {
text = text
.replace(/^\s*\[ \]\s*/, '<i class="empty checkbox icon"></i> ')
.replace(/^\s*\[x\]\s*/, '<i class="checked checkbox icon"></i> ');
return '<li style="list-style: none">' + text + '</li>';
} else {
return '<li>' + text + '</li>';
}
}; |
+1 to add this feature by default |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
my test code:
results:
my config:
The text was updated successfully, but these errors were encountered: