bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI

Home Page:http://hallojs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save as markdown?

marcobarbosa opened this issue · comments

Is that possible?

How could I use this file?
http://hallojs.org/js/markdown/to-markdown.js

I would like to know the same, please :D

commented

Can't you just read deeper into the sample code on hallojs.org webpage?

http://hallojs.org/js/markdown/editor.js

  var markdownize = function(content) {
    var html = content.split("\n").map($.trim).filter(function(line) { 
      return line != "";
    }).join("\n");
    return toMarkdown(html);
  };

Already found ....
There is also an example here :

http://hallojs.org/demo/markdown/

The only thing I haven't managed to do yet is to add custom css classes to embedded images