Skip to content
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

Where is the tasklist extension? #23

Closed
zmwangx opened this issue May 1, 2017 · 4 comments
Closed

Where is the tasklist extension? #23

zmwangx opened this issue May 1, 2017 · 4 comments

Comments

@zmwangx
Copy link

zmwangx commented May 1, 2017

At the moment (0.27.1.gfm.0), the tasklist extension does not show up in --list-extensions; its test case in test/spec.txt is disabled; and it doesn't seem to be mentioned anywhere else in the code base. Am I right it's not included in the code base? Any plan to release it?

@kivikakk
Copy link

kivikakk commented May 1, 2017

The tasklist extension isn't actually implemented in cmark itself; we perform this transformation in our (Ruby) user content stack, in such a way that conforms to the (quite loose) specification. It's not super likely that we'd reimplement it in C at this stage, as the benefit to us would be minimal.

The nature of task lists is that they are quite specific to your implementation — for example, we render our checkboxes disabled, and with specific classes so that JavaScript on the page can attach events to them and re-enable them, for AJAX-y updating of the Markdown contents when they're checked and unchecked. So the likelihood is you'd be best off implementing this yourself anyway, for your particular purpose.

@zmwangx
Copy link
Author

zmwangx commented May 1, 2017

Yeah makes sense, thanks for responding.

@zmwangx zmwangx closed this as completed May 1, 2017
@kivikakk
Copy link

kivikakk commented May 1, 2017

(Of course, there can be some differing on this opinion — I have implemented tasklist in my Rust CommonMark library, but it's a really minimal implementation and isn't necessarily useful to many people without further post-processing.)

@zmwangx
Copy link
Author

zmwangx commented May 1, 2017

Cool, I'll check it out.

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