🎨 The block in the editor shows the database icon https://github.com/siyuan-note/siyuan/issues/8894

This commit is contained in:
Daniel committed 2023-10-11 09:16:57 +08:00
1 parent 6f249d768f
commit e4907e7896
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ $packages["encoding/binary"]=(function(){var $pkg={},$init,A,B,C,D,E,O,Z,J;A=$pa
$packages["encoding/base64"]=(function(){var $pkg={},$init,A,B,C,D,F,H,N,O,P,Q,R,S,T,V,E,G,J,K;A=$packages["encoding/binary"];B=$packages["io"];C=$packages["strconv"];D=$pkg.Encoding=$newType(0,$kindStruct,"base64.Encoding",true,"encoding/base64",true,function(encode_,decodeMap_,padChar_,strict_){this.$val=this;if(arguments.length===0){this.encode=N.zero();this.decodeMap=O.zero();this.padChar=0;this.strict=false;return;}this.encode=encode_;this.decodeMap=decodeMap_;this.padChar=padChar_;this.strict=strict_;});F=$pkg.encoder=$newType(0,$kindStruct,"base64.encoder",true,"encoding/base64",false,function(err_,enc_,w_,buf_,nbuf_,out_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;this.enc=Q.nil;this.w=$ifaceNil;this.buf=R.zero();this.nbuf=0;this.out=S.zero();return;}this.err=err_;this.enc=enc_;this.w=w_;this.buf=buf_;this.nbuf=nbuf_;this.out=out_;});H=$pkg.CorruptInputError=$newType(8,$kindInt64,"base64.CorruptInputError",true,"encoding/base64",true,null);N=$arrayType($Uint8,64);O=$arrayType($Uint8,256);P=$sliceType($Uint8);Q=$ptrType(D);R=$arrayType($Uint8,3);S=$arrayType($Uint8,1024);T=$arrayType($Uint8,4);V=$ptrType(F);E=function(a){var a,b,c,d,e,f,g,h;if(!((a.length===64))){$panic(new $String("encoding alphabet is not 64-bytes long"));}b=0;while(true){if(!(b<a.length)){break;}if((a.charCodeAt(b)===10)||(a.charCodeAt(b)===13)){$panic(new $String("encoding alphabet contains newline character"));}b=b+(1)>>0;}c=new D.ptr(N.zero(),O.zero(),0,false);c.padChar=61;$copyString(new P(c.encode),a);d=0;while(true){if(!(d<256)){break;}(e=c.decodeMap,((d<0||d>=e.length)?($throwRuntimeError("index out of range"),undefined):e[d]=255));d=d+(1)>>0;}f=0;while(true){if(!(f<a.length)){break;}(g=c.decodeMap,h=a.charCodeAt(f),((h<0||h>=g.length)?($throwRuntimeError("index out of range"),undefined):g[h]=((f<<24>>>24))));f=f+(1)>>0;}return c;};$pkg.NewEncoding=E;D.ptr.prototype.WithPadding=function(a){var a,b,c,d;b=this;if((a===13)||(a===10)||a>255){$panic(new $String("invalid padding"));}c=0;while(true){if(!(c<64)){break;}if((((d=b.encode,((c<0||c>=d.length)?($throwRuntimeError("index out of range"),undefined):d[c]))>>0))===a){$panic(new $String("padding contained in alphabet"));}c=c+(1)>>0;}b.padChar=a;return b;};D.prototype.WithPadding=function(a){return this.$val.WithPadding(a);};D.ptr.prototype.Strict=function(){var a;a=this;a.strict=true;return a;};D.prototype.Strict=function(){return this.$val.Strict();};D.ptr.prototype.Encode=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=this;if(b.$length===0){return;}$unused(c.encode);d=0;e=0;f=d;g=e;i=$imul(((h=b.$length/3,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero"))),3);while(true){if(!(g<i)){break;}m=(((((((j=g+0>>0,((j<0||j>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+j]))>>>0))<<16>>>0)|((((k=g+1>>0,((k<0||k>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+k]))>>>0))<<8>>>0))>>>0)|(((l=g+2>>0,((l<0||l>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+l]))>>>0)))>>>0;(p=f+0>>0,((p<0||p>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+p]=(n=c.encode,o=((m>>>18>>>0)&63)>>>0,((o<0||o>=n.length)?($throwRuntimeError("index out of range"),undefined):n[o]))));(s=f+1>>0,((s<0||s>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+s]=(q=c.encode,r=((m>>>12>>>0)&63)>>>0,((r<0||r>=q.length)?($throwRuntimeError("index out of range"),undefined):q[r]))));(v=f+2>>0,((v<0||v>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+v]=(t=c.encode,u=((m>>>6>>>0)&63)>>>0,((u<0||u>=t.length)?($throwRuntimeError("index out of range"),undefined):t[u]))));(y=f+3>>0,((y<0||y>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+y]=(w=c.encode,x=(m&63)>>>0,((x<0||x>=w.length)?($throwRuntimeError("index out of range"),undefined):w[x]))));g=g+(3)>>0;f=f+(4)>>0;}z=b.$length-g>>0;if(z===0){return;}ab=(((aa=g+0>>0,((aa<0||aa>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+aa]))>>>0))<<16>>>0;if(z===2){ab=(ab|(((((ac=g+1>>0,((ac<0||ac>=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+ac]))>>>0))<<8>>>0)))>>>0;}(af=f+0>>0,((af<0||af>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+af]=(ad=c.encode,ae=((ab>>>18>>>0)&63)>>>0,((ae<0||ae>=ad.length)?($throwRuntimeError("index out of range"),undefined):ad[ae]))));(ai=f+1>>0,((ai<0||ai>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+ai]=(ag=c.encode,ah=((ab>>>12>>>0)&63)>>>0,((ah<0||ah>=ag.length)?($throwRuntimeError("index out of range"),undefined):ag[ah]))));aj=z;if(aj===(2)){(am=f+2>>0,((am<0||am>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+am]=(akLine truncated
$packages["unicode/utf16"]=(function(){var $pkg={},$init;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$packages["encoding/json"]=(function(){var $pkg={},$init,C,H,I,D,J,G,E,K,L,M,F,A,N,O,B,P,AD,AE,CA,CB,CC,CE,CG,CJ,CL,CM,DB,DI,DJ,DL,DO,DQ,DS,DU,DY,DZ,EA,EK,EV,EX,EY,EZ,FA,FB,FG,FH,FI,FJ,FK,FL,FM,FO,FU,FV,FW,FX,FZ,GA,GB,GC,GD,R,S,AF,CF,CH,CN,CQ,CR,DC,DD,ED,EQ,ER,a,b,c,Q,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BQ,BT,BU,BV,BW,BX,BZ,CI,CK,CO,CP,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DE,DF,DG,DH,DK,DM,DN,DP,DR,DT,DV,DW,DX,EB,EC,EE;C=$packages["bytes"];H=$packages["encoding"];I=$packages["encoding/base64"];D=$packages["errors"];J=$packages["fmt"];G=$packages["github.com/gopherjs/gopherjs/nosync"];E=$packages["io"];K=$packages["math"];L=$packages["reflect"];M=$packages["sort"];F=$packages["strconv"];A=$packages["strings"];N=$packages["unicode"];O=$packages["unicode/utf16"];B=$packages["unicode/utf8"];P=$pkg.tagOptions=$newType(8,$kindString,"json.tagOptions",true,"encoding/json",false,null);AD=$pkg.SyntaxError=$newType(0,$kindStruct,"json.SyntaxError",true,"encoding/json",true,function(msg_,Offset_){this.$val=this;if(arguments.length===0){this.msg="";this.Offset=new $Int64(0,0);return;}this.msg=msg_;this.Offset=Offset_;});AE=$pkg.scanner=$newType(0,$kindStruct,"json.scanner",true,"encoding/json",false,function(step_,endTop_,parseState_,err_,bytes_){this.$val=this;if(arguments.length===0){this.step=$throwNilPointerError;this.endTop=false;this.parseState=EX.nil;this.err=$ifaceNil;this.bytes=new $Int64(0,0);return;}this.step=step_;this.endTop=endTop_;this.parseState=parseState_;this.err=err_;this.bytes=bytes_;});CA=$pkg.Marshaler=$newType(8,$kindInterface,"json.Marshaler",true,"encoding/json",true,null);CB=$pkg.UnsupportedTypeError=$newType(0,$kindStruct,"json.UnsupportedTypeError",true,"encoding/json",true,function(Type_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;return;}this.Type=Type_;});CC=$pkg.UnsupportedValueError=$newType(0,$kindStruct,"json.UnsupportedValueError",true,"encoding/json",true,function(Value_,Str_){this.$val=this;if(arguments.length===0){this.Value=new L.Value.ptr(FO.nil,0,0);this.Str="";return;}this.Value=Value_;this.Str=Str_;});CE=$pkg.MarshalerError=$newType(0,$kindStruct,"json.MarshalerError",true,"encoding/json",true,function(Type_,Err_,sourceFunc_){this.$val=this;if(arguments.length===0){this.Type=$ifaceNil;this.Err=$ifaceNil;this.sourceFunc="";return;}this.Type=Type_;this.Err=Err_;this.sourceFunc=sourceFunc_;});CG=$pkg.encodeState=$newType(0,$kindStruct,"json.encodeState",true,"encoding/json",false,function(Buffer_,scratch_,ptrLevel_,ptrSeen_){this.$val=this;if(arguments.length===0){this.Buffer=new C.Buffer.ptr(FA.nil,0,0);this.scratch=FI.zero();this.ptrLevel=0;this.ptrSeen=false;return;}this.Buffer=Buffer_;this.scratch=scratch_;this.ptrLevel=ptrLevel_;this.ptrSeen=ptrSeen_;});CJ=$pkg.jsonError=$newType(0,$kindStruct,"json.jsonError",true,"encoding/json",false,function(error_){this.$val=this;if(arguments.length===0){this.error=$ifaceNil;return;}this.error=error_;});CL=$pkg.encOpts=$newType(0,$kindStruct,"json.encOpts",true,"encoding/json",false,function(quoted_,escapeHTML_){this.$val=this;if(arguments.length===0){this.quoted=false;this.escapeHTML=false;return;}this.quoted=quoted_;this.escapeHTML=escapeHTML_;});CM=$pkg.encoderFunc=$newType(4,$kindFunc,"json.encoderFunc",true,"encoding/json",false,null);DB=$pkg.floatEncoder=$newType(4,$kindInt,"json.floatEncoder",true,"encoding/json",false,null);DI=$pkg.structEncoder=$newType(0,$kindStruct,"json.structEncoder",true,"encoding/json",false,function(fields_){this.$val=this;if(arguments.length===0){this.fields=new DJ.ptr(FJ.nil,false);return;}this.fields=fields_;});DJ=$pkg.structFields=$newType(0,$kindStruct,"json.structFields",true,"encoding/json",false,function(list_,nameIndex_){this.$val=this;if(arguments.length===0){this.list=FJ.nil;this.nameIndex=false;return;}this.list=list_;this.nameIndex=nameIndex_;});DL=$pkg.mapEncoder=$newType(0,$kindStruct,"json.mapEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});DO=$pkg.sliceEncoder=$newType(0,$kindStruct,"json.sliceEncoder",true,"encoding/json",false,function(arrayEnc_){this.$val=this;if(arguments.length===0){this.arrayEnc=$throwNilPointerError;return;}this.arrayEnc=arrayEnc_;});DQ=$pkg.arrayEncoder=$newType(0,$kindStruct,"json.arrayEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});DS=$pkg.ptrEncoder=$newType(0,$kindStruct,"json.ptrEncoder",true,"encoding/json",false,function(elemEnc_){this.$val=this;if(arguments.length===0){this.elemEnc=$throwNilPointerError;return;}this.elemEnc=elemEnc_;});DU=$pkg.condAddrEncoder=$newType(0,$kindStruct,"json.condAddrEncoder",true,"encoding/json",false,function(canAddrEnc_,elseEnc_){this.$val=this;if(arguments.length===0){this.canAddrEnc=$throwNilPointerError;this.elseEnc=$tLine truncated
$packages["github.com/88250/lute/render"]=(function(){var $pkg={},$init,A,M,H,F,G,I,J,K,L,B,C,D,E,N,P,R,T,AL,AM,AO,AQ,AW,BC,BE,BI,BS,BV,BY,CA,CG,CI,CJ,CK,CL,CM,CN,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,DF,DG,DH,DI,DJ,DK,DL,DM,DN,DO,DP,DR,DT,DU,DV,DW,X,AC,AK,AZ,CD,CF,O,Q,S,U,V,W,Y,Z,AA,AB,AD,AE,AF,AG,AH,AI,AJ,AP,AR,AS,AT,AU,AV,AX,AY,BA,BD,BF,BJ,BK,BN,BO,BP,BQ,BR,BT,BU,BW,BX,BZ,CB,CH;A=$packages["bytes"];M=$packages["encoding/json"];H=$packages["github.com/88250/lute/ast"];F=$packages["github.com/88250/lute/editor"];G=$packages["github.com/88250/lute/html"];I=$packages["github.com/88250/lute/lex"];J=$packages["github.com/88250/lute/parse"];K=$packages["github.com/88250/lute/util"];L=$packages["io"];B=$packages["strconv"];C=$packages["strings"];D=$packages["unicode"];E=$packages["unicode/utf8"];N=$pkg.VditorRenderer=$newType(0,$kindStruct,"render.VditorRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,commentStackDepth_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;this.commentStackDepth=0;return;}this.BaseRenderer=BaseRenderer_;this.commentStackDepth=commentStackDepth_;});P=$pkg.VditorSVRenderer=$newType(0,$kindStruct,"render.VditorSVRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,nodeWriterStack_,LastOut_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;this.nodeWriterStack=CT.nil;this.LastOut=CI.nil;return;}this.BaseRenderer=BaseRenderer_;this.nodeWriterStack=nodeWriterStack_;this.LastOut=LastOut_;});R=$pkg.VditorIRRenderer=$newType(0,$kindStruct,"render.VditorIRRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;return;}this.BaseRenderer=BaseRenderer_;});T=$pkg.TextBundleRenderer=$newType(0,$kindStruct,"render.TextBundleRenderer",true,"github.com/88250/lute/render",true,function(FormatRenderer_,linkPrefixes_,originalLink_){this.$val=this;if(arguments.length===0){this.FormatRenderer=CX.nil;this.linkPrefixes=CJ.nil;this.originalLink=CJ.nil;return;}this.FormatRenderer=FormatRenderer_;this.linkPrefixes=linkPrefixes_;this.originalLink=originalLink_;});AL=$pkg.RendererFunc=$newType(4,$kindFunc,"render.RendererFunc",true,"github.com/88250/lute/render",true,null);AM=$pkg.ExtRendererFunc=$newType(4,$kindFunc,"render.ExtRendererFunc",true,"github.com/88250/lute/render",true,null);AO=$pkg.Options=$newType(0,$kindStruct,"render.Options",true,"github.com/88250/lute/render",true,function(SoftBreak2HardBreak_,AutoSpace_,RenderListStyle_,CodeSyntaxHighlight_,CodeSyntaxHighlightDetectLang_,CodeSyntaxHighlightInlineStyle_,CodeSyntaxHighlightLineNum_,CodeSyntaxHighlightStyleName_,VditorWYSIWYG_,VditorIR_,VditorSV_,ProtyleWYSIWYG_,KramdownBlockIAL_,KramdownSpanIAL_,SuperBlock_,ImageLazyLoading_,ChineseParagraphBeginningSpace_,Sanitize_,FixTermTypo_,Terms_,ToC_,HeadingID_,KramdownIALIDRenderName_,HeadingAnchor_,GFMTaskListItemClass_,VditorCodeBlockPreview_,VditorMathBlockPreview_,VditorHTMLBlockPreview_,LinkBase_,LinkPrefix_,NodeIndexStart_,ProtyleContenteditable_,KeepParagraphBeginningSpace_,ProtyleMarkNetImg_,Spellcheck_){this.$val=this;if(arguments.length===0){this.SoftBreak2HardBreak=false;this.AutoSpace=false;this.RenderListStyle=false;this.CodeSyntaxHighlight=false;this.CodeSyntaxHighlightDetectLang=false;this.CodeSyntaxHighlightInlineStyle=false;this.CodeSyntaxHighlightLineNum=false;this.CodeSyntaxHighlightStyleName="";this.VditorWYSIWYG=false;this.VditorIR=false;this.VditorSV=false;this.ProtyleWYSIWYG=false;this.KramdownBlockIAL=false;this.KramdownSpanIAL=false;this.SuperBlock=false;this.ImageLazyLoading="";this.ChineseParagraphBeginningSpace=false;this.Sanitize=false;this.FixTermTypo=false;this.Terms=false;this.ToC=false;this.HeadingID=false;this.KramdownIALIDRenderName="";this.HeadingAnchor=false;this.GFMTaskListItemClass="";this.VditorCodeBlockPreview=false;this.VditorMathBlockPreview=false;this.VditorHTMLBlockPreview=false;this.LinkBase="";this.LinkPrefix="";this.NodeIndexStart=0;this.ProtyleContenteditable=false;this.KeepParagraphBeginningSpace=false;this.ProtyleMarkNetImg=false;this.Spellcheck=false;return;}this.SoftBreak2HardBreak=SoftBreak2HardBreak_;this.AutoSpace=AutoSpace_;this.RenderListStyle=RenderListStyle_;this.CodeSyntaxHighlight=CodeSyntaxHighlight_;this.CodeSyntaxHighlightDetectLang=CodeSyntaxHighlightDetectLang_;this.CodeSyntaxHighlightInlineStyle=CodeSyntaxHighlightInlineStyle_;this.CodeSyntaxHighlightLineNum=CodeSyntaxHighlightLineNum_;this.CodeSyntaxHighlightStyleName=CodeSyntaxHighlightStyleName_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.VditorSV=VditorSV_;this.ProtyleWYSIWYG=ProtyleWYSIWYG_;this.KramdownBlockIAL=KramdownBlockIAL_;this.KramdownSpanIAL=KramdownSpanIAL_;this.SuperBlock=SuperBlock_;this.ImageLazyLoading=ImageLazyLoading_;this.ChineseParagraphBeginningSpace=ChineseParagraphBeginningSpace_;this.Sanitize=Sanitize_;this.FixTermTypo=FixTermTypo_;this.Terms=Terms_;this.ToC=ToC_;this.Line truncated
$packages["github.com/88250/lute/render"]=(function(){var $pkg={},$init,A,M,H,F,G,I,J,K,L,B,C,D,E,N,P,R,T,AL,AM,AO,AQ,AW,BC,BE,BI,BS,BV,BY,CA,CG,CI,CJ,CK,CL,CM,CN,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,DF,DG,DH,DI,DJ,DK,DL,DM,DN,DO,DP,DR,DT,DU,DV,DW,X,AC,AK,AZ,CD,CF,O,Q,S,U,V,W,Y,Z,AA,AB,AD,AE,AF,AG,AH,AI,AJ,AP,AR,AS,AT,AU,AV,AX,AY,BA,BD,BF,BJ,BK,BN,BO,BP,BQ,BR,BT,BU,BW,BX,BZ,CB,CH;A=$packages["bytes"];M=$packages["encoding/json"];H=$packages["github.com/88250/lute/ast"];F=$packages["github.com/88250/lute/editor"];G=$packages["github.com/88250/lute/html"];I=$packages["github.com/88250/lute/lex"];J=$packages["github.com/88250/lute/parse"];K=$packages["github.com/88250/lute/util"];L=$packages["io"];B=$packages["strconv"];C=$packages["strings"];D=$packages["unicode"];E=$packages["unicode/utf8"];N=$pkg.VditorRenderer=$newType(0,$kindStruct,"render.VditorRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,commentStackDepth_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;this.commentStackDepth=0;return;}this.BaseRenderer=BaseRenderer_;this.commentStackDepth=commentStackDepth_;});P=$pkg.VditorSVRenderer=$newType(0,$kindStruct,"render.VditorSVRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,nodeWriterStack_,LastOut_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;this.nodeWriterStack=CT.nil;this.LastOut=CI.nil;return;}this.BaseRenderer=BaseRenderer_;this.nodeWriterStack=nodeWriterStack_;this.LastOut=LastOut_;});R=$pkg.VditorIRRenderer=$newType(0,$kindStruct,"render.VditorIRRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CK.nil;return;}this.BaseRenderer=BaseRenderer_;});T=$pkg.TextBundleRenderer=$newType(0,$kindStruct,"render.TextBundleRenderer",true,"github.com/88250/lute/render",true,function(FormatRenderer_,linkPrefixes_,originalLink_){this.$val=this;if(arguments.length===0){this.FormatRenderer=CX.nil;this.linkPrefixes=CJ.nil;this.originalLink=CJ.nil;return;}this.FormatRenderer=FormatRenderer_;this.linkPrefixes=linkPrefixes_;this.originalLink=originalLink_;});AL=$pkg.RendererFunc=$newType(4,$kindFunc,"render.RendererFunc",true,"github.com/88250/lute/render",true,null);AM=$pkg.ExtRendererFunc=$newType(4,$kindFunc,"render.ExtRendererFunc",true,"github.com/88250/lute/render",true,null);AO=$pkg.Options=$newType(0,$kindStruct,"render.Options",true,"github.com/88250/lute/render",true,function(SoftBreak2HardBreak_,AutoSpace_,RenderListStyle_,CodeSyntaxHighlight_,CodeSyntaxHighlightDetectLang_,CodeSyntaxHighlightInlineStyle_,CodeSyntaxHighlightLineNum_,CodeSyntaxHighlightStyleName_,VditorWYSIWYG_,VditorIR_,VditorSV_,ProtyleWYSIWYG_,KramdownBlockIAL_,KramdownSpanIAL_,SuperBlock_,ImageLazyLoading_,ChineseParagraphBeginningSpace_,Sanitize_,FixTermTypo_,Terms_,ToC_,HeadingID_,KramdownIALIDRenderName_,HeadingAnchor_,GFMTaskListItemClass_,VditorCodeBlockPreview_,VditorMathBlockPreview_,VditorHTMLBlockPreview_,LinkBase_,LinkPrefix_,NodeIndexStart_,ProtyleContenteditable_,KeepParagraphBeginningSpace_,ProtyleMarkNetImg_,Spellcheck_){this.$val=this;if(arguments.length===0){this.SoftBreak2HardBreak=false;this.AutoSpace=false;this.RenderListStyle=false;this.CodeSyntaxHighlight=false;this.CodeSyntaxHighlightDetectLang=false;this.CodeSyntaxHighlightInlineStyle=false;this.CodeSyntaxHighlightLineNum=false;this.CodeSyntaxHighlightStyleName="";this.VditorWYSIWYG=false;this.VditorIR=false;this.VditorSV=false;this.ProtyleWYSIWYG=false;this.KramdownBlockIAL=false;this.KramdownSpanIAL=false;this.SuperBlock=false;this.ImageLazyLoading="";this.ChineseParagraphBeginningSpace=false;this.Sanitize=false;this.FixTermTypo=false;this.Terms=false;this.ToC=false;this.HeadingID=false;this.KramdownIALIDRenderName="";this.HeadingAnchor=false;this.GFMTaskListItemClass="";this.VditorCodeBlockPreview=false;this.VditorMathBlockPreview=false;this.VditorHTMLBlockPreview=false;this.LinkBase="";this.LinkPrefix="";this.NodeIndexStart=0;this.ProtyleContenteditable=false;this.KeepParagraphBeginningSpace=false;this.ProtyleMarkNetImg=false;this.Spellcheck=false;return;}this.SoftBreak2HardBreak=SoftBreak2HardBreak_;this.AutoSpace=AutoSpace_;this.RenderListStyle=RenderListStyle_;this.CodeSyntaxHighlight=CodeSyntaxHighlight_;this.CodeSyntaxHighlightDetectLang=CodeSyntaxHighlightDetectLang_;this.CodeSyntaxHighlightInlineStyle=CodeSyntaxHighlightInlineStyle_;this.CodeSyntaxHighlightLineNum=CodeSyntaxHighlightLineNum_;this.CodeSyntaxHighlightStyleName=CodeSyntaxHighlightStyleName_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.VditorSV=VditorSV_;this.ProtyleWYSIWYG=ProtyleWYSIWYG_;this.KramdownBlockIAL=KramdownBlockIAL_;this.KramdownSpanIAL=KramdownSpanIAL_;this.SuperBlock=SuperBlock_;this.ImageLazyLoading=ImageLazyLoading_;this.ChineseParagraphBeginningSpace=ChineseParagraphBeginningSpace_;this.Sanitize=Sanitize_;this.FixTermTypo=FixTermTypo_;this.Terms=Terms_;this.ToC=ToC_;this.Line truncated
$packages["github.com/88250/lute"]=(function(){var $pkg={},$init,A,M,K,D,E,F,G,L,H,I,J,O,B,C,N,P,R,Z,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AY,BA,BB,BC,BD,BE,BF,BG,T,W,a,b,Q,S,AA;A=$packages["bytes"];M=$packages["errors"];K=$packages["fmt"];D=$packages["github.com/88250/lute/ast"];E=$packages["github.com/88250/lute/editor"];F=$packages["github.com/88250/lute/html"];G=$packages["github.com/88250/lute/html/atom"];L=$packages["github.com/88250/lute/lex"];H=$packages["github.com/88250/lute/parse"];I=$packages["github.com/88250/lute/render"];J=$packages["github.com/88250/lute/util"];O=$packages["github.com/gopherjs/gopherjs/js"];B=$packages["strconv"];C=$packages["strings"];N=$packages["sync"];P=$packages["unicode"];R=$pkg.Lute=$newType(0,$kindStruct,"lute.Lute",true,"github.com/88250/lute",true,function(ParseOptions_,RenderOptions_,HTML2MdRendererFuncs_,HTML2VditorDOMRendererFuncs_,HTML2VditorIRDOMRendererFuncs_,HTML2BlockDOMRendererFuncs_,HTML2VditorSVDOMRendererFuncs_,Md2HTMLRendererFuncs_,Md2VditorDOMRendererFuncs_,Md2VditorIRDOMRendererFuncs_,Md2BlockDOMRendererFuncs_,Md2VditorSVDOMRendererFuncs_){this.$val=this;if(arguments.length===0){this.ParseOptions=AO.nil;this.RenderOptions=AC.nil;this.HTML2MdRendererFuncs=false;this.HTML2VditorDOMRendererFuncs=false;this.HTML2VditorIRDOMRendererFuncs=false;this.HTML2BlockDOMRendererFuncs=false;this.HTML2VditorSVDOMRendererFuncs=false;this.Md2HTMLRendererFuncs=false;this.Md2VditorDOMRendererFuncs=false;this.Md2VditorIRDOMRendererFuncs=false;this.Md2BlockDOMRendererFuncs=false;this.Md2VditorSVDOMRendererFuncs=false;return;}this.ParseOptions=ParseOptions_;this.RenderOptions=RenderOptions_;this.HTML2MdRendererFuncs=HTML2MdRendererFuncs_;this.HTML2VditorDOMRendererFuncs=HTML2VditorDOMRendererFuncs_;this.HTML2VditorIRDOMRendererFuncs=HTML2VditorIRDOMRendererFuncs_;this.HTML2BlockDOMRendererFuncs=HTML2BlockDOMRendererFuncs_;this.HTML2VditorSVDOMRendererFuncs=HTML2VditorSVDOMRendererFuncs_;this.Md2HTMLRendererFuncs=Md2HTMLRendererFuncs_;this.Md2VditorDOMRendererFuncs=Md2VditorDOMRendererFuncs_;this.Md2VditorIRDOMRendererFuncs=Md2VditorIRDOMRendererFuncs_;this.Md2BlockDOMRendererFuncs=Md2BlockDOMRendererFuncs_;this.Md2VditorSVDOMRendererFuncs=Md2VditorSVDOMRendererFuncs_;});Z=$pkg.ParseOption=$newType(4,$kindFunc,"lute.ParseOption",true,"github.com/88250/lute",true,null);AB=$ptrType(H.Tree);AC=$ptrType(I.Options);AD=$sliceType($Uint8);AE=$ptrType(F.Node);AF=$ptrType(D.Node);AG=$ptrType(H.Context);AH=$ptrType(L.Lexer);AI=$ptrType(H.InlineContext);AJ=$sliceType($String);AK=$sliceType(AF);AL=$ptrType(D.ListData);AM=$sliceType($Int);AN=$sliceType(AJ);AO=$ptrType(H.Options);AP=$sliceType(AE);AQ=$ptrType(AP);AR=$ptrType(F.Attribute);AS=$sliceType(AR);AT=$sliceType(G.Atom);AU=$sliceType($emptyInterface);AV=$ptrType(R);AW=$sliceType(Z);AY=$ptrType(A.Buffer);BA=$mapType($String,$emptyInterface);BB=$sliceType($Int32);BC=$mapType($String,$String);BD=$ptrType(O.Object);BE=$mapType($String,BD);BF=$mapType($String,BE);BG=$mapType(D.NodeType,I.ExtRendererFunc);R.ptr.prototype.Md2HTML=function(c){var{c,d,e,f,$s,$r,$c}=$restore(this,{c});$s=$s||0;s:while(true){switch($s){case 0:d="";e=this;f=e.MarkdownStr("",c);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;$s=-1;return d;}return;}var $f={$blk:R.ptr.prototype.Md2HTML,$c:true,$r,c,d,e,f,$s};return $f;};R.prototype.Md2HTML=function(c){return this.$val.Md2HTML(c);};R.ptr.prototype.SpinVditorDOM=function(c){var{c,d,e,f,g,h,i,j,k,l,m,$s,$r,$c}=$restore(this,{c});$s=$s||0;s:while(true){switch($s){case 0:d="";e=this;c=C.ReplaceAll(c,"<wbr>","\xE2\x80\xB8");f=e.vditorDOM2Md(c);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=H.Parse("",(new AD($stringToBytes(g))),e.ParseOptions);$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;j=I.NewVditorRenderer(i,e.RenderOptions);$s=3;case 3:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;l=k.BaseRenderer.Render();$s=4;case 4:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;d=C.ReplaceAll(($bytesToString(m)),"\xE2\x80\xB8","<wbr>");$s=-1;return d;}return;}var $f={$blk:R.ptr.prototype.SpinVditorDOM,$c:true,$r,c,d,e,f,g,h,i,j,k,l,m,$s};return $f;};R.prototype.SpinVditorDOM=function(c){return this.$val.SpinVditorDOM(c);};R.ptr.prototype.HTML2VditorDOM=function(c){var{c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,$s,$r,$c}=$restore(this,{c});$s=$s||0;s:while(true){switch($s){case 0:d="";e=this;g=e.HTML2Markdown(c);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[0];i=f[1];if(!($interfaceIsEqual($ifaceNil,i))){$s=2;continue;}$s=3;continue;case 2:j=i.Error();$s=4;case 4:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}d=j;$s=-1;return d;case 3:k=H.Parse("",(new AD($stringToBytes(h))),e.ParseOptions);$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=I.NewVditorRenderer(l,e.RenderOptionsLine truncated
$packages["github.com/88250/lute/javascript"]=(function(){var $pkg={},$init,A,B,C,D,E,F,J,K,L,M,N,O,P,Q,R,S,G,H,I;A=$packages["github.com/88250/lute"];B=$packages["github.com/88250/lute/ast"];C=$packages["github.com/88250/lute/editor"];D=$packages["github.com/88250/lute/html"];E=$packages["github.com/88250/lute/render"];F=$packages["github.com/gopherjs/gopherjs/js"];J=$ptrType(F.Object);K=$mapType($String,J);L=$mapType($String,K);M=$funcType([L],[J],false);N=$ptrType(B.Node);O=$funcType([N],[$String],false);P=$funcType([],[$String],false);Q=$funcType([$String],[$String],false);R=$mapType($String,$emptyInterface);S=$sliceType(A.ParseOption);G=function(){$global.Lute=$externalize($makeMap($String.keyFor,[{k:"Version",v:new $String("1.7.5")},{k:"New",v:new M(H)},{k:"WalkStop",v:new $Int(0)},{k:"WalkSkipChildren",v:new $Int(1)},{k:"WalkContinue",v:new $Int(2)},{k:"GetHeadingID",v:new O(E.HeadingID)},{k:"Caret",v:new $String("\xE2\x80\xB8")},{k:"NewNodeID",v:new P(B.NewNodeID)},{k:"EscapeHTMLStr",v:new Q(D.EscapeHTMLStr)},{k:"UnEscapeHTMLStr",v:new Q(D.UnescapeHTMLStr)},{k:"EChartsMindmapStr",v:new Q(E.EChartsMindmapStr)},{k:"Sanitize",v:new Q(E.Sanitize)},{k:"BlockDOM2Content",v:new Q(I)}]),R);};H=function(a){var{a,b,c,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=A.New(S.nil);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$r=c.SetJSRenderers(a);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return F.MakeWrapper(c);}return;}var $f={$blk:H,$c:true,$r,a,b,c,$s};return $f;};$pkg.New=H;I=function(a){var{a,b,c,d,e,$s,$r,$c}=$restore(this,{a});$s=$s||0;s:while(true){switch($s){case 0:b=A.New(S.nil);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;c.SetProtyleWYSIWYG(true);c.SetBlockRef(true);c.SetFileAnnotationRef(true);c.SetKramdownIAL(true);c.SetTag(true);c.SetSuperBlock(true);c.SetImgPathAllowSpace(true);c.SetGitConflict(true);c.SetMark(true);c.SetSup(true);c.SetSub(true);c.SetInlineMathAllowDigitAfterOpenMarker(true);c.SetFootnotes(false);c.SetToC(false);c.SetIndentCodeBlock(false);c.SetParagraphBeginningSpace(true);c.SetAutoSpace(false);c.SetHeadingID(false);c.SetSetext(false);c.SetYamlFrontMatter(false);c.SetLinkRef(false);c.SetCodeSyntaxHighlight(false);c.SetSanitize(true);d=c.BlockDOM2Content(a);$s=2;case 2:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;$s=3;case 3:return e;}return;}var $f={$blk:I,$c:true,$r,a,b,c,d,e,$s};return $f;};$pkg.BlockDOM2Content=I;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if($pkg===$mainPkg){G();$mainFinished=true;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
$synthesizeMethods();