From 24b789645eba916dd44f5f3cde0caa82bd237020 Mon Sep 17 00:00:00 2001
From: Alan Knowles '+C+'
';}return ''+(E?C:escape(C,true))+'\n
\n';};Renderer.prototype.blockquote=function(C){return ''+(E?C:escape(C,true))+'\n
\n'+C+'
\n';
-};Renderer.prototype.html=function(C){return C;};Renderer.prototype.heading=function(C,D,E){return '
\n':'
\n';
-};Renderer.prototype.list=function(C,D){var E=D?'ol':'ul';return '<'+E+'>\n'+C+''+E+'>\n';};Renderer.prototype.listitem=function(C){return '\n'+'\n'+C+'\n'+'\n'+D+'\n'+'
\n';
-};Renderer.prototype.tablerow=function(C){return '\n'+C+' \n';};Renderer.prototype.tablecell=function(C,D){var E=D.header?'th':'td';var F=D.align?'<'+E+' style="text-align:'+D.align+'">':'<'+E+'>';return F+C+''+E+'>\n';};Renderer.prototype.strong=function(C){return ''+C+'';
-};Renderer.prototype.em=function(C){return ''+C+'';};Renderer.prototype.codespan=function(C){return ''+C+'
';};Renderer.prototype.br=function(){return this.options.xhtml?'
':'
';};Renderer.prototype.del=function(C){return ''+C+'';
-};Renderer.prototype.link=function(C,D,E){if(this.options.sanitize){try{var F=decodeURIComponent(unescape(C)).replace(/[^\w:]/g,'').toLowerCase();}catch(e){return '';}if(F.indexOf('javascript:')===0||F.indexOf('vbscript:')===0){return '';}}var G=''+E+'';return G;};Renderer.prototype.image=function(C,D,E){var F='':'>';return F;};Renderer.prototype.text=function(C){return C;};function Parser(C){this.tokens=[];
-this.token=null;this.options=C||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options;}Parser.parse=function(C,D,E){var F=new Parser(D,E);return F.parse(C);};Parser.prototype.parse=function(C){this.inline=new InlineLexer(C.links,this.options,this.renderer);
-this.tokens=C.reverse();var D='';while(this.next()){D+=this.tok();}return D;};Parser.prototype.next=function(){return this.token=this.tokens.pop();};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0;};Parser.prototype.parseText=function(){var C=this.token.text;
-while(this.peek().type==='text'){C+='\n'+this.next().text;}return this.inline.output(C);};Parser.prototype.tok=function(){switch(this.token.type){case 'space':{return '';}case 'hr':{return this.renderer.hr();}case 'heading':{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);
-}case 'code':{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);}case 'table':{var C='',D='',i,E,F,G,j;F='';for(i=0;i
'+escape(e.message+'',true)+''; -}throw e;}}marked.options=marked.setOptions=function(C){merge(marked.defaults,C);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:'lang-',smartypants:false,headerPrefix:'',renderer:new Renderer,xhtml:false} -;marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;Roo.Markdown.marked=marked;})(); +);var B=function(D){this.tokens=[];this.tokens.links={};this.options=D||marked.defaults;this.rules=A.normal;if(this.options.gfm){if(this.options.tables){this.rules=A.tables;}else{this.rules=A.gfm;}}};B.rules=A;B.lex=function(D,E){var F=new B(E);return F.lex(D); +};B.prototype.lex=function(D){D=D.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(D,true);};B.prototype.token=function(D,E,bq){var D=D.replace(/^ +$/gm,''),F,G,H,I,b,J,K,i,l;while(D){if(H=this.rules.newline.exec(D)){D=D.substring(H[0].length); +if(H[0].length>1){this.tokens.push({type:'space'});}}if(H=this.rules.code.exec(D)){D=D.substring(H[0].length);H=H[0].replace(/^ {4}/gm,'');this.tokens.push({type:'code',text:!this.options.pedantic?H.replace(/\n+$/,''):H});continue;}if(H=this.rules.fences.exec(D)){D=D.substring(H[0].length); +this.tokens.push({type:'code',lang:H[2],text:H[3]||''});continue;}if(H=this.rules.heading.exec(D)){D=D.substring(H[0].length);this.tokens.push({type:'heading',depth:H[1].length,text:H[2]});continue;}if(E&&(H=this.rules.nptable.exec(D))){D=D.substring(H[0].length); +J={type:'table',header:H[1].replace(/^ *| *\| *$/g,'').split(/ *\| */),align:H[2].replace(/^ *|\| *$/g,'').split(/ *\| */),cells:H[3].replace(/\n$/,'').split('\n')};for(i=0;i
'+(F?D:escape(D,true))+'\n
';}return ''+(F?D:escape(D,true))+'\n
\n';};Renderer.prototype.blockquote=function(D){return '\n'+D+'\n'; +};Renderer.prototype.html=function(D){return D;};Renderer.prototype.heading=function(D,E,F){return '
'+D+'
\n';};Renderer.prototype.table=function(D,E){return ''+D+'
';};Renderer.prototype.br=function(){return this.options.xhtml?''+escape(e.message+'',true)+''; +}throw e;}}marked.options=marked.setOptions=function(D){merge(marked.defaults,D);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:'lang-',smartypants:false,headerPrefix:'',renderer:new Renderer,xhtml:false} +;marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=B;marked.lexer=B.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;Roo.Markdown.marked=marked;})(); // Roo/dd/DragDrop.js (function(){var A=Roo.EventManager;var B=Roo.lib.Dom;Roo.dd.DragDrop=function(id,C,D){if(id){this.init(id,C,D);}};Roo.extend(Roo.dd.DragDrop,Roo.util.Observable,{id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true; },unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(x,y){} diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 334ca3f678..4a7002ae77 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -16898,7 +16898,7 @@ Roo.Markdown.toHtml = function(text) { * Block Lexer */ - function Lexer(options) { + var Lexer = function (options) { this.tokens = []; this.tokens.links = {}; this.options = options || marked.defaults; diff --git a/roojs-core.js b/roojs-core.js index 9eed568b55..ced05995d5 100644 --- a/roojs-core.js +++ b/roojs-core.js @@ -688,57 +688,57 @@ return Roo.Markdown.marked(A);};(function(){var A={newline:/^\n+/,code:/^( {4}[^ A._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';A.html=replace(A.html)('comment',//)('closed',/<(tag)[\s\S]+?<\/\1>/)('closing',/
'+(E?C:escape(C,true))+'\n
';}return ''+(E?C:escape(C,true))+'\n
\n';};Renderer.prototype.blockquote=function(C){return '\n'+C+'\n'; -};Renderer.prototype.html=function(C){return C;};Renderer.prototype.heading=function(C,D,E){return '
'+C+'
\n';};Renderer.prototype.table=function(C,D){return ''+C+'
';};Renderer.prototype.br=function(){return this.options.xhtml?''+escape(e.message+'',true)+''; -}throw e;}}marked.options=marked.setOptions=function(C){merge(marked.defaults,C);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:'lang-',smartypants:false,headerPrefix:'',renderer:new Renderer,xhtml:false} -;marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;Roo.Markdown.marked=marked;})(); +);var B=function(D){this.tokens=[];this.tokens.links={};this.options=D||marked.defaults;this.rules=A.normal;if(this.options.gfm){if(this.options.tables){this.rules=A.tables;}else{this.rules=A.gfm;}}};B.rules=A;B.lex=function(D,E){var F=new B(E);return F.lex(D); +};B.prototype.lex=function(D){D=D.replace(/\r\n|\r/g,'\n').replace(/\t/g,' ').replace(/\u00a0/g,' ').replace(/\u2424/g,'\n');return this.token(D,true);};B.prototype.token=function(D,E,bq){var D=D.replace(/^ +$/gm,''),F,G,H,I,b,J,K,i,l;while(D){if(H=this.rules.newline.exec(D)){D=D.substring(H[0].length); +if(H[0].length>1){this.tokens.push({type:'space'});}}if(H=this.rules.code.exec(D)){D=D.substring(H[0].length);H=H[0].replace(/^ {4}/gm,'');this.tokens.push({type:'code',text:!this.options.pedantic?H.replace(/\n+$/,''):H});continue;}if(H=this.rules.fences.exec(D)){D=D.substring(H[0].length); +this.tokens.push({type:'code',lang:H[2],text:H[3]||''});continue;}if(H=this.rules.heading.exec(D)){D=D.substring(H[0].length);this.tokens.push({type:'heading',depth:H[1].length,text:H[2]});continue;}if(E&&(H=this.rules.nptable.exec(D))){D=D.substring(H[0].length); +J={type:'table',header:H[1].replace(/^ *| *\| *$/g,'').split(/ *\| */),align:H[2].replace(/^ *|\| *$/g,'').split(/ *\| */),cells:H[3].replace(/\n$/,'').split('\n')};for(i=0;i
'+(F?D:escape(D,true))+'\n
';}return ''+(F?D:escape(D,true))+'\n
\n';};Renderer.prototype.blockquote=function(D){return '\n'+D+'\n'; +};Renderer.prototype.html=function(D){return D;};Renderer.prototype.heading=function(D,E,F){return '
'+D+'
\n';};Renderer.prototype.table=function(D,E){return ''+D+'
';};Renderer.prototype.br=function(){return this.options.xhtml?''+escape(e.message+'',true)+''; +}throw e;}}marked.options=marked.setOptions=function(D){merge(marked.defaults,D);return marked;};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:'lang-',smartypants:false,headerPrefix:'',renderer:new Renderer,xhtml:false} +;marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=B;marked.lexer=B.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;Roo.Markdown.marked=marked;})(); // Roo/dd/DragDrop.js (function(){var A=Roo.EventManager;var B=Roo.lib.Dom;Roo.dd.DragDrop=function(id,C,D){if(id){this.init(id,C,D);}};Roo.extend(Roo.dd.DragDrop,Roo.util.Observable,{id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true; },unlock:function(){this.locked=false;},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(x,y){} diff --git a/roojs-debug.js b/roojs-debug.js index 72df33b2ab..0a37da05e6 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -16898,7 +16898,7 @@ Roo.Markdown.toHtml = function(text) { * Block Lexer */ - function Lexer(options) { + var Lexer = function (options) { this.tokens = []; this.tokens.links = {}; this.options = options || marked.defaults; -- 2.39.2