standardnotes / markdown-pro

[Moved to https://github.com/standardnotes/app] Markdown Pro editor for Standard Notes (formerly Advanced Markdown Editor)
GNU Affero General Public License v3.0
31 stars 21 forks source link

Feature request: support for GFM style checkboxes #10

Open sweenzor opened 5 years ago

sweenzor commented 5 years ago

I'd love to be able to make clickable checkbox lists inside markdown files.

Github flavored markdown (GFM) renders the following as checkboxes:

- [x] Item
- [ ] Another item

Becomes:

It would be great to have those rendered as checkboxes in the advanced markdown editor. Even better to have them be clickable!

Thanks!

moughxyz commented 5 years ago

Oh, strange that they don't. We can check https://github.com/sparksuite/simplemde-markdown-editor to see if it's possible. Even if it were, it would only be in preview mode, and it would be read-only. That is, interacting with the checkbox wouldn't affect data state.

sweenzor commented 5 years ago

Ah ha! Someone has already requested it there: https://github.com/sparksuite/simplemde-markdown-editor/issues/635

I'll bump that issue. Thank you!

sweenzor commented 5 years ago

Ah, that project looks pretty abandoned. Last commit is Jun 14, 2016

moughxyz commented 5 years ago

Going to be unlikely that we modify the source of this ourselves. We'd accept PRs though! The other MD editors all do render checkmarks though, if you can live without the toolbar?

sweenzor commented 5 years ago

Understood. Thank you!

sonjoonho commented 2 years ago

This is an old issue, but for future reference I just want to point out that this is possible since the switch to EasyMDE (https://github.com/standardnotes/markdown-pro/commit/2d8d509ddcb4dea46b6949452bc7d00987061e9c). I think this issue can be closed.