markup icon indicating copy to clipboard operation
markup copied to clipboard

Task lists do not render in README.md

Open codeaholics opened this issue 13 years ago • 108 comments

Task list syntax (https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments) does not render in README.md

codeaholics avatar Jul 09 '13 16:07 codeaholics

Hey guys! I'm one of the engineers behind our Markup stack. We're well aware that READMEs don't render task lists. This is intentional, and it's been like this since the beginning.

As you probably saw on the blog post that announced this feature, task lists (together with commit mentions, branch mentions, user mentions, and a large list of other super-useful functionality) are a GitHub Flavored Markdown extension. As such, they are not Standard Markdown, and they are only available for comments posted through our web UI.

Since the very beginning, we've made GFM features only available for user content and comments in the website (and not on actual Markdown documents stored in your repositories), because all these features need the GitHub infrastructure to actually work. A link to another repository, to an issue, to a PR or to a user, a task list... All these features are not available on the Markdown documents in your repositories because they are simply not possible to be rendered locally, and even though the GFM renderer that supports them is free and open-source, we really really care about Open Standards, like Markdown, and forcing down our custom features to the Markdown files in your local machines is something we don't believe in.

The case for having task lists work in READMEs and local files is even more specific and complicated, because of the way they are actually implemented. When you post a comment to GitHub with task lists, we carefully store it in the database in a way that allows us to see where task lists are positioned, and allows us to update the value of each checkbox when you click them on the web UI.

When you commit a README to your repository with a task list on it, we have no control on the way the task list information is actually stored (it's your file, in your repository), and changing one of the checkboxes when you click it implies doing something rather awful: automatically committing a new file with your checkbox change to your repository.

The history of a Git repository matters a lot (it matters a lot to us): it's the way you keep track of changes to your software; it's the story of how your project evolved over time, and it's an indispensable tool for writing and mantaining a successful software project. We believe in branches and discussions, in small commits and descriptive commit messages that let you always know when code changes and why it changed. Automatically creating a commit every time you click a checkbox is the opposite of this.

There's nothing stopping you from having checkboxes in your README, but if you have a task there called [ ] Fix issue with rendering, don't you think it would be a much better idea to manually cross it out in the same commit where you perform the fix?

In summary, we don't think that having task lists on a README that can be updated from the web UI encourages a good usage of Git history, or good workflows, and I hope that you guys acknowledge the philosophical and technical reasons that make this feature unfeasible.

I deeply apologize for not bringing this rationale to you guys before, but please don't think for a moment that we don't pay attention to these kind of requests -- we always care, and we discuss and evaluate these things extensively, but sometimes we just get overflowed with requests, and it becomes hard to respond to all of them like they deserve.

Please bear with us. Much love, vmg

vmg avatar Sep 23 '13 15:09 vmg

That's not even true. Please re-read again the title of this issue.

You should simply draw [ ] and [x] as

The biggest impediment is that the brackets are drawn very ugly and meaningless while some readonly input checkboxes would be a lot nicer and more intuitive.

Your explains are not correct and we can only see that you are trying to get away from this basic and simple regex to do for nothing, but writing a long, boring excuse.

It took us almost half year to pump +1 to this issue and you did nothing until I have contacted the support which did a great job by bringing you here in less than half a day!

C'mon @vmg, you can do better than moaning around and implement this very simple ui regex change, at least!

With regards, dotnetwise

dotnetwise avatar Sep 23 '13 19:09 dotnetwise

Hey, hey, a response. Well, it sucks that the feature won't exist, but at least now I don't have to twiddle my thumbs for another two months like it did to even get a response.

davidlohle avatar Sep 23 '13 20:09 davidlohle

Hello. I'm the creator of this issue. While I can't speak for anyone else, it was certainly my expectation that this would be "render only", and wouldn't support checking/unchecking via the browser. (Which also addresses your comment about changing the state of a checkbox as part of the appropriate commit.)

As for "forcing GFM" on users, how about allowing us to make a choice on a repository-by-repository basis whether we want GFM or not?

This is certainly the first time it's been stated clearly enough for me to understand that GFM (@mentions, etc.) only work on content entered via web forms and not on committed content, but it certainly does seem to be a very hard thing to do if users want it.

Thanks!

On 23 Sep 2013, at 21:33, NemDiggers [email protected] wrote:

Hey, hey, a response. Well, it sucks that the feature won't exist, but at least now I don't have to twiddle my thumbs for another two months like it did to even get a response.

— Reply to this email directly or view it on GitHub.

codeaholics avatar Sep 23 '13 21:09 codeaholics

+1 for readonly checkboxes

ianstormtaylor avatar Oct 01 '13 20:10 ianstormtaylor

+1 for readonly checkboxes PLEASE :)

PS: Or just open source github so we can add this ourselves LOL

marcioAlmada avatar Oct 14 '13 01:10 marcioAlmada

TODO

  • [ ] read-only checkboxes in README.md
  • [ ] users want it

c'mon guys.. give us something!

thykka avatar Oct 30 '13 15:10 thykka

:+1:

korczis avatar Oct 30 '13 18:10 korczis

+1 for readonly. It cannot be that hard...

adam-lee avatar Nov 04 '13 19:11 adam-lee

+1, i cannot live without checkboxes in readme!

england avatar Nov 04 '13 19:11 england

+1

aelgru avatar Nov 06 '13 17:11 aelgru

I'll die

Please add checkboxes

georg-wolflein avatar Nov 07 '13 20:11 georg-wolflein

+1 this would be great

beggerss avatar Nov 21 '13 20:11 beggerss

:+1:

ChrisCummins avatar Nov 24 '13 01:11 ChrisCummins

Read only checkboxes would be nice.

Or at least mention explicitly in the github flavored markdown page (https://help.github.com/articles/github-flavored-markdown) that these are not supported in readme.md files, that would have prevented me from searching for this issue.

Thanks!

jamesfe avatar Nov 29 '13 05:11 jamesfe

I was totally expecting readonly checkboxes as well.

killercup avatar Dec 04 '13 10:12 killercup

this would be awesome!

ajmalafif avatar Dec 06 '13 16:12 ajmalafif

I don't actually understand where I can use checkboxes... but where I'd like to use it is on my readme's (read only)

dtudury avatar Dec 10 '13 05:12 dtudury

@dtudury you can use them within issues, good example PyBuilder issue #26

aelgru avatar Dec 10 '13 19:12 aelgru

+1 on readonly checkboxes too!

yanek avatar Dec 13 '13 00:12 yanek