-
-
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
Remove extra soft break for tasklist #8142
Conversation
This seems a good change! We need tests to be updated before CI will pass. |
Browser will display the extra newline character between checkbox and text as a space, which make tasklist items cannot be aligned. I just remove it.
Thanks! |
But usually you would want space between the check-mark and the text? Also, pandoc markdown was according to GitHub Markdown spec before this PR: https://github.github.com/gfm/#task-list-items-extension- |
Agreed, but this brings us into a dilemma: either we break compatibility with the GFM spec that gave rise to this feature, or we produce overly-specific HTML. My preference is with keeping this PR, but the choice should be an informed decision. |
Agreed, but I not familiar with Haskell at all. I not even understand the line I changed :( Sorry, I cannot help :( |
No worries. What I mean is just that it's important to discuss the issue that @mb21 brought up. From my point of view, there are no further changes necessary. |
Thanks for bringing this up, I hadn't considered this possible drawback. |
the screenshots I show in #8142 (comment) had apply my own css: input[type="checkbox"] {
margin-right:0;
margin-left: -1.5em;
width: 1.5em;
} the default situation is weird: because the checkbox is part of the ul.task-list{list-style: none;} :( but in my option of view, the checkbox is some kind of Update:
- [ ] aaa
aaa
aaa
is md render api of github return: so this is a bug of pandoc's tasklist ext :) by the way github's css here: |
OK, that makes sense. Maybe we should have a separate issue (since this PR is now closed) suggesting making the checkbox a sibling of the block-level content, and suggesting some default CSS for it? |
done, #8151 |
Browser will display the extra newline character between checkbox and
text as a space, which make tasklist items cannot be aligned.
I just remove it.
before:


after: