From 63b5e8912f3f0db4914cc2d50c876a5b2dc2fc9e Mon Sep 17 00:00:00 2001
From: Federico Soave
"+s(c.message+"",!0)+"";throw c}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:h,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:h,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:h,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=l(u.item,"gm")(/bull/g,u.bullet)(),u.list=l(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=l(u.blockquote)("def",u.def)(),u._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",u.html=l(u.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/
'+(n?e:s(e,!0))+"\n
\n":""+(n?e:s(e,!0))+"\n
"},n.prototype.blockquote=function(e){return"\n"+e+"\n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"
"+e+"
\n"},n.prototype.table=function(e,t){return""+e+"
"},n.prototype.br=function(){return this.options.xhtml?"'+(n?e:o(e,!0))+"\n
\n":""+(n?e:o(e,!0))+"\n
"},s.prototype.blockquote=function(e){return"\n"+e+"\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n){return"
"+e+"
\n"},s.prototype.table=function(e,t){return""+e+"
"},s.prototype.br=function(){return this.options.xhtml?""+o(e.message+"",!0)+"";throw e}}g.exec=g,d.options=d.setOptions=function(e){return f(d.defaults,e),d},d.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new s,xhtml:!1,baseUrl:null},d.Parser=l,d.parser=l.parse,d.Renderer=s,d.TextRenderer=i,d.Lexer=t,d.lexer=t.lex,d.InlineLexer=r,d.inlineLexer=r.output,d.parse=d,"undefined"!=typeof module&&"object"==typeof exports?module.exports=d:"function"==typeof define&&define.amd?define(function(){return d}):this.marked=d}).call(function(){return this||("undefined"!=typeof window?window:global)}()); \ No newline at end of file diff --git a/package.json b/package.json index 073a5ac805..d6529886fc 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,11 @@ "markdown-it": "*", "front-matter": "^2.3.0", "glob-to-regexp": "0.3.0", - "gulp": "^3.8.11", - "gulp-uglify": "^1.1.0", - "gulp-concat": "^2.5.2" + "uglify-js": "^3.3.10" }, "scripts": { "test": "node test", - "bench": "node test --bench" + "bench": "node test --bench", + "build": "uglifyjs lib/marked.js -cm --comments /Copyright/ -o marked.min.js" } } From 3e427c2ef261ead7c8e873db765372a6d76b605f Mon Sep 17 00:00:00 2001 From: Federico Soave