It would be really sweet to have a wysiwyg editor where the output is in markdown syntax instead of HTML. This would be a nice combo with e.g. Drupal input formats.
There is a number of javascript libraries to turn html into markdown:
- http://www.functionn.in/2012/11/remarkedjs-client-side-html-to-markdown.html#.UuKNj-Y1jqI
- https://github.com/domchristie/to-markdown
- https://github.com/hgilani/html2markdown
And probably the other direction exists as well.
So, the thing to do here would be to plug a two-directional filter between the original text area and the wysiwyg.
I have not studied the API of CKEditor yet, so I thought I start with a request in the forum :)
Note: I could probably figure
Note: I could probably figure out how to put the pieces together, but the goal here is to have something painless and reusable that can be installed on a Drupal site or elsewhere without too much thinking.
agree
the project that I am currently working on is requesting that markdown is available as an alternative, and it'd be awesome to simply have this option available in ckeditor so that I can get rid of additional plugins to handle this requirement.
+1 - This would remove the
+1 - This would remove the need completely for https://www.drupal.org/project/markdown