Add Markdown support
Support Markdown formatting: that will help us get fancy with our text (bold, italic...) provide link in a convenient way (instead of dumping overlong urls) and above all format code (a must have for developers).
There are many js implementation for markwdown: I usually recommend commonmark: after all, the well tested library used by stackoverflow and github (among others) seem good enough :)
Markdown now on master, ships with Oct 2 release.
Michael, definitely like your suggestion, perhaps it could go into a new feature idea for the community to upvote?
In terms of markdown flavor, after much consideration we went with GitLab markdown: http://www.mattermost.org/open-source-slack-alternative-adopts-markdown/
Thanks to everyone for feedback and upvotes, feature is in!
-
Michael Mulligan commented
Can I make a suggestion? Would it not be more advantageous for Mattermost to implement a Message Filter API?
Something that allows consumption of a message, and manipulation of a message, via a plugin. This way we could implement Markdown support, as well as many other things, maybe even implement different flavors of Markdown support (GitHub Markdown Plugin, Commonmark Markdown support, etc).
If this already exists, I am hard pressed to see how the is up to Mattermost, as why doesn't someone just make a plugin that does this?
-
Gabriel Robertson commented
The JavaScript library markdown-it is based hard on the commonmark standard and is highly and easily extensible (such as handling #hashtag support properly).
-
leipert commented
please consider NOT using GitHub flavored Markdown and marked for client side rendering.
The guy behind pandoc and several other Markdown parsers are working on a more universal spec called Commonmark.
markdown-it is a JavaScript implementation of Commonmark.