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

Markdown checklists should not show bullets #1223

Open
1 of 2 tasks
damufo opened this issue Jan 28, 2025 · 6 comments
Open
1 of 2 tasks

Markdown checklists should not show bullets #1223

damufo opened this issue Jan 28, 2025 · 6 comments
Labels
enhancement New feature or request help wanted If you're willing to help, do!

Comments

@damufo
Copy link

damufo commented Jan 28, 2025

The current markdown preview render is showing bullets:

  • checked list item
  • unchecked list item

↓↓↓

Image

The bullets are hidden in most implementations, including GitHub, which is the original.

@zefhemel zefhemel added the enhancement New feature or request label Feb 2, 2025
@zefhemel
Copy link
Collaborator

zefhemel commented Feb 2, 2025

Interesting. However I often mix regular and task items in bulleted lists. That would look odd then, or there would have to be a special case for bulleted lists with just tasks.

@damufo
Copy link
Author

damufo commented Feb 2, 2025

github implementation

  • item one
  • item two
  • item three
  • item four
  • item five

When no task show bullet.

@kolmone
Copy link

kolmone commented Feb 2, 2025

Github seems to show a bulleted task with the syntax - - [ ] or * * [ ]

  • task with - [ ]
    • task with - - [ ]
  • regular bulleted item

(Actually in the posted comment it does not look as nice as in the preview so it might not be "official" syntax?)

@damufo
Copy link
Author

damufo commented Feb 3, 2025

  • item
    • item2
  • Iem 3
    • Item 4
- [ ] item
-  - [ ] item2
* [ ] Iem 3 
* *  [ ] Item 4

@mjf
Copy link

mjf commented Feb 3, 2025

I also tend to think the checkboxes should not be preceded with the bullets while rendered. If we make such change, I would like to see some proper alignment of the items values (see below the poor's man vizualization to get the idea of what I mean; even GitHub have it wrong and ugly - we should do better 😃 ):

The ordinary

- [x] task item
- list item
- list item
- [ ] task item
- list item

will show up aligned nicely:

[x] task item
 •  list item
 •  list item
[ ] task item
 •  list item

(Not sure how to achieve it. Perhaps throw some grid to it? Some CSS mastery is probably needed...)

@zefhemel
Copy link
Collaborator

zefhemel commented Feb 5, 2025

Sadly with the way CodeMirror generates HTML this may not be that easy to perfectly align, but worth a shot.

@zefhemel zefhemel added the help wanted If you're willing to help, do! label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted If you're willing to help, do!
Projects
None yet
Development

No branches or pull requests

4 participants