This commit is contained in:
2017-03-11 01:06:42 +01:00
parent d6f72ba20f
commit a2172da6ff
26 changed files with 183 additions and 72 deletions

1
Yavsc/wwwroot/js/md-helpers.min.js vendored Normal file
View File

@ -0,0 +1 @@
var markdownize=function(r){if(!r)return"";var n=r.split("\n").map($.trim).filter(function(r){return""!=r}).join("\n");return toMarkdown(n)},converter=new showdown.Converter,htmlize=function(r){return converter.makeHtml(r)},updateMD=function(r,n){if(!n)return jQuery("#"+r).val("");var e=markdownize(n);jQuery("#"+r).val()!==e&&jQuery("#"+r).val(e)};