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

Render GFM tasks with checkboxes as intended. #40

Open
1 of 2 tasks
5310 opened this issue Apr 14, 2014 · 3 comments
Open
1 of 2 tasks

Render GFM tasks with checkboxes as intended. #40

5310 opened this issue Apr 14, 2014 · 3 comments

Comments

@5310
Copy link

5310 commented Apr 14, 2014

Github Flavored Markdown has a rather useful extension for writing task-lists.

- [x] Do a thing.
- [ ] Do another thing.

Becomes:

  • Do a thing.
  • Do another thing.

Currently, the GFM parser for MarkdownPreview shows these tasks as standard list items, like so:

  • [​x] Do a thing.
  • [​ ] Do another thing.

I request that checkbox characters are substituted in place of the intended markup like so:

  • ☑ Do a thing.
  • ☐ Do another thing.

Optionally, if MarkdownPreview could render interactive checkboxes that would alter the source file, that would be even better!

@gruehle
Copy link
Owner

gruehle commented Jun 3, 2014

@5310 Thanks for the report, and sorry it's taken so long for me to respond. This extension uses the awesome marked library, which unfortunately doesn't support task lists yet. Once marked is updated, I'll pull the latest version into this extension.

Here is the tracking bug in marked.

@5310
Copy link
Author

5310 commented Jun 3, 2014

Now that you mention it, it this does seem like a parser-side feature. Oops. Thank you for the link to the issue.

Although it doesn't seem that GFM tasklists support is particularly active an issue at Marked at the moment!

Edit: On second glance I seemed to have spoke too soon (again), a closed duplicate of the main issues seems to have been referenced as recently as March '14.

@nojaf
Copy link

nojaf commented Sep 15, 2014

When using GFM it's easy to let Github compile the markdown.
Try https://github.com/gitapi/markdown to request the markdown and you could use https://github.com/sindresorhus/github-markdown-css to style it

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

3 participants