markd
markd copied to clipboard
GFM support
Spec: https://github.github.com/gfm/
TODO
- [ ] task list
- [ ] table
- [ ] emoji
Will this include dimensions for images? Usually done via:

Until this is added I do have support for gfm in my octokit.cr shard. The downside is that it has to make http requests to github's api, but it works.
Smart, but the best solution is to use javascript markdown library for now 🤣
I really hope that GFM is added soon to markd. In the meantime, I created a cr-cmark-gfm, a shard that binds to the official GFM C library. You can render to multiple formats, create custom nodes, renderers, etc. If you need full support of GFM in crystal give it a try. PRs welcome!
Emoji does not appear to really be part of cmark-gfm, FWIW per: https://github.com/github/cmark-gfm/issues/75 Guess that leaves tables and task-lists.
Tables are probably the most commonly used feature of GFM. They're dearly missed in markd
.
I'm currently focused on my work and no more time on Crystal language, as I mentioned before I would like to donate the project to crystal officials.
Sorry about this :smiling_face_with_tear:
Just to be clear, my comment was not a request for you to take care of this.
Why don't you start a discussion about transferring ownership of the project? I think https://forum.crystal-lang.org/ would be a good place to find a solution for a community-supported new home.
I'm sure we'll find a good way to move forward. markd
is an important piece of Crystal's ecosystem. Thank you very much for creating it and taking care of it!
I've started working on this here. So far I've done strikethrough, hope to get to the rest soon.
- [ ] tables
- [x] task list
- [x] strikethrough
- [ ] autolinks
- [x] disallow raw html (don't know if we should do this one)
- [x] emoji (not part of gfm but I think would be fun to implement)