Commit 8dd1763a authored by Sylvany Mirana's avatar Sylvany Mirana
Browse files

up link

parent 98198fc4
......@@ -487,12 +487,15 @@ var dataHelper = {
markdownToHtml : function (str, showdownOptions=null) {
var converter = new showdown.Converter(showdownOptions);
var res = converter.makeHtml(str);
res = res.replace(/<a/g, "<a target='_blank'");
return res;
},
convertMardownToHtml : function (text) {
var converter = new showdown.Converter();
return converter.makeHtml(text);
var res = converter.makeHtml(text);
res = res.replace(/<a/g, "<a target='_blank'");
return res;
},
htmlToMarkdown: function (html) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment