pulsir / pulsir4

A rewrite of the Pulsir core with goals to increase code maintainability.
0 stars 2 forks source link

Using HTML instead of Markdown in text editor? #5

Open ghost opened 7 years ago

ghost commented 7 years ago

I think HTML is better, and offers more options than Markdown. My recommendation is TinyMCE editor, it is being used as a default text editor in WordPress. Also in the future, it would be nice if we could make an option to switch between text editors and html/markdown.

mbmjertan commented 7 years ago

A switch would be nice, but I'm more in favour of using a combination of both.

However, as allowing HTML is a minefield of security disasters, I think it's probably best to use just Markdown. Perhaps we could build an extended version of it.

mbmjertan commented 7 years ago

By the way, in Pulsir 3, we used Parsedown to generate HTML from Markdown (http://parsedown.org/) which I quite liked, combining it with HTML Purifier (which sadly isn't really actively developed anymore - http://htmlpurifier.org/) to allow only harmless tags.