fix:[用户前端] 修复注册页面选择邮箱后缀在手机端被缩略的问题
This commit is contained in:
1 parent
7b36c07630
commit
fa476ed31d
3 files changed
+1
-1
No files matched your search
Vendored
+1
-1
@@ -3788,4 +3788,4 @@ ${t}
|
||||
`:">",i)};is.prototype.renderInline=function(e,t,o){for(var n,r="",i=this.rules,s=0,l=e.length;s<l;s++)n=e[s].type,typeof i[n]<"u"?r+=i[n](e,s,t,o,this):r+=this.renderToken(e,s,t);return r};is.prototype.renderInlineAsText=function(e,t,o){for(var n="",r=0,i=e.length;r<i;r++)e[r].type==="text"?n+=e[r].content:e[r].type==="image"?n+=this.renderInlineAsText(e[r].children,t,o):e[r].type==="softbreak"&&(n+=`
|
||||
`);return n};is.prototype.render=function(e,t,o){var n,r,i,s="",l=this.rules;for(n=0,r=e.length;n<r;n++)i=e[n].type,i==="inline"?s+=this.renderInline(e[n].children,t,o):typeof l[i]<"u"?s+=l[i](e,n,t,o,this):s+=this.renderToken(e,n,t,o);return s};var s4e=is;function nn(){this.__rules__=[],this.__cache__=null}nn.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};nn.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(o){o.enabled&&o.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(o){e.__cache__[o]=[],e.__rules__.forEach(function(n){n.enabled&&(o&&n.alt.indexOf(o)<0||e.__cache__[o].push(n.fn))})})};nn.prototype.at=function(e,t,o){var n=this.__find__(e),r=o||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=r.alt||[],this.__cache__=null};nn.prototype.before=function(e,t,o,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:o,alt:i.alt||[]}),this.__cache__=null};nn.prototype.after=function(e,t,o,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:o,alt:i.alt||[]}),this.__cache__=null};nn.prototype.push=function(e,t,o){var n=o||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};nn.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var o=[];return e.forEach(function(n){var r=this.__find__(n);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!0,o.push(n)},this),this.__cache__=null,o};nn.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(o){o.enabled=!1}),this.enable(e,t)};nn.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var o=[];return e.forEach(function(n){var r=this.__find__(n);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!1,o.push(n)},this),this.__cache__=null,o};nn.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var rp=nn,l4e=/\r\n?|\n/g,a4e=/\0/g,c4e=function(t){var o;o=t.src.replace(l4e,`
|
||||
`),o=o.replace(a4e,"�"),t.src=o},u4e=function(t){var o;t.inlineMode?(o=new t.Token("inline","",0),o.content=t.src,o.map=[0,1],o.children=[],t.tokens.push(o)):t.md.block.parse(t.src,t.md,t.env,t.tokens)},d4e=function(t){var o=t.tokens,n,r,i;for(r=0,i=o.length;r<i;r++)n=o[r],n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)},f4e=zt.arrayReplaceAt;function h4e(e){return/^<a[>\s]/i.test(e)}function p4e(e){return/^<\/a\s*>/i.test(e)}var g4e=function(t){var o,n,r,i,s,l,a,c,u,d,f,p,h,v,b,m,x=t.tokens,$;if(t.md.options.linkify){for(n=0,r=x.length;n<r;n++)if(!(x[n].type!=="inline"||!t.md.linkify.pretest(x[n].content)))for(i=x[n].children,h=0,o=i.length-1;o>=0;o--){if(l=i[o],l.type==="link_close"){for(o--;i[o].level!==l.level&&i[o].type!=="link_open";)o--;continue}if(l.type==="html_inline"&&(h4e(l.content)&&h>0&&h--,p4e(l.content)&&h++),!(h>0)&&l.type==="text"&&t.md.linkify.test(l.content)){for(u=l.content,$=t.md.linkify.match(u),a=[],p=l.level,f=0,$.length>0&&$[0].index===0&&o>0&&i[o-1].type==="text_special"&&($=$.slice(1)),c=0;c<$.length;c++)v=$[c].url,b=t.md.normalizeLink(v),t.md.validateLink(b)&&(m=$[c].text,$[c].schema?$[c].schema==="mailto:"&&!/^mailto:/i.test(m)?m=t.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=t.md.normalizeLinkText(m):m=t.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),d=$[c].index,d>f&&(s=new t.Token("text","",0),s.content=u.slice(f,d),s.level=p,a.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",b]],s.level=p++,s.markup="linkify",s.info="auto",a.push(s),s=new t.Token("text","",0),s.content=m,s.level=p,a.push(s),s=new t.Token("link_close","a",-1),s.level=--p,s.markup="linkify",s.info="auto",a.push(s),f=$[c].lastIndex);f<u.length&&(s=new t.Token("text","",0),s.content=u.slice(f),s.level=p,a.push(s)),x[n].children=i=f4e(i,o,a)}}}},Bw=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,v4e=/\((c|tm|r)\)/i,m4e=/\((c|tm|r)\)/ig,b4e={c:"©",r:"®",tm:"™"};function x4e(e,t){return b4e[t.toLowerCase()]}function y4e(e){var t,o,n=0;for(t=e.length-1;t>=0;t--)o=e[t],o.type==="text"&&!n&&(o.content=o.content.replace(m4e,x4e)),o.type==="link_open"&&o.info==="auto"&&n--,o.type==="link_close"&&o.info==="auto"&&n++}function C4e(e){var t,o,n=0;for(t=e.length-1;t>=0;t--)o=e[t],o.type==="text"&&!n&&Bw.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&n--,o.type==="link_close"&&o.info==="auto"&&n++}var w4e=function(t){var o;if(t.md.options.typographer)for(o=t.tokens.length-1;o>=0;o--)t.tokens[o].type==="inline"&&(v4e.test(t.tokens[o].content)&&y4e(t.tokens[o].children),Bw.test(t.tokens[o].content)&&C4e(t.tokens[o].children))},l0=zt.isWhiteSpace,a0=zt.isPunctChar,c0=zt.isMdAsciiPunct,_4e=/['"]/,u0=/['"]/g,d0="’";function ta(e,t,o){return e.slice(0,t)+o+e.slice(t+1)}function S4e(e,t){var o,n,r,i,s,l,a,c,u,d,f,p,h,v,b,m,x,$,y,w,S;for(y=[],o=0;o<e.length;o++){for(n=e[o],a=e[o].level,x=y.length-1;x>=0&&!(y[x].level<=a);x--);if(y.length=x+1,n.type==="text"){r=n.content,s=0,l=r.length;e:for(;s<l&&(u0.lastIndex=s,i=u0.exec(r),!!i);){if(b=m=!0,s=i.index+1,$=i[0]==="'",u=32,i.index-1>=0)u=r.charCodeAt(i.index-1);else for(x=o-1;x>=0&&!(e[x].type==="softbreak"||e[x].type==="hardbreak");x--)if(e[x].content){u=e[x].content.charCodeAt(e[x].content.length-1);break}if(d=32,s<l)d=r.charCodeAt(s);else for(x=o+1;x<e.length&&!(e[x].type==="softbreak"||e[x].type==="hardbreak");x++)if(e[x].content){d=e[x].content.charCodeAt(0);break}if(f=c0(u)||a0(String.fromCharCode(u)),p=c0(d)||a0(String.fromCharCode(d)),h=l0(u),v=l0(d),v?b=!1:p&&(h||f||(b=!1)),h?m=!1:f&&(v||p||(m=!1)),d===34&&i[0]==='"'&&u>=48&&u<=57&&(m=b=!1),b&&m&&(b=f,m=p),!b&&!m){$&&(n.content=ta(n.content,i.index,d0));continue}if(m){for(x=y.length-1;x>=0&&(c=y[x],!(y[x].level<a));x--)if(c.single===$&&y[x].level===a){c=y[x],$?(w=t.md.options.quotes[2],S=t.md.options.quotes[3]):(w=t.md.options.quotes[0],S=t.md.options.quotes[1]),n.content=ta(n.content,i.index,S),e[c.token].content=ta(e[c.token].content,c.pos,w),s+=S.length-1,c.token===o&&(s+=w.length-1),r=n.content,l=r.length,y.length=x;continue e}}b?y.push({token:o,pos:i.index,single:$,level:a}):m&&$&&(n.content=ta(n.content,i.index,d0))}}}}var k4e=function(t){var o;if(t.md.options.typographer)for(o=t.tokens.length-1;o>=0;o--)t.tokens[o].type!=="inline"||!_4e.test(t.tokens[o].content)||S4e(t.tokens[o].children,t)},$4e=function(t){var o,n,r,i,s,l,a=t.tokens;for(o=0,n=a.length;o<n;o++)if(a[o].type==="inline"){for(r=a[o].children,s=r.length,i=0;i<s;i++)r[i].type==="text_special"&&(r[i].type="text");for(i=l=0;i<s;i++)r[i].type==="text"&&i+1<s&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==l&&(r[l]=r[i]),l++);i!==l&&(r.length=l)}};function ss(e,t,o){this.type=e,this.tag=t,this.attrs=null,this
Line truncated
|
||||
`,s.map=[o,t.line],!0},I4e=function(t,o,n,r){var i,s,l,a,c,u,d,f=!1,p=t.bMarks[o]+t.tShift[o],h=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||p+3>h||(i=t.src.charCodeAt(p),i!==126&&i!==96)||(c=p,p=t.skipChars(p,i),s=p-c,s<3)||(d=t.src.slice(c,p),l=t.src.slice(p,h),i===96&&l.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(a=o;a++,!(a>=n||(p=c=t.bMarks[a]+t.tShift[a],h=t.eMarks[a],p<h&&t.sCount[a]<t.blkIndent));)if(t.src.charCodeAt(p)===i&&!(t.sCount[a]-t.blkIndent>=4)&&(p=t.skipChars(p,i),!(p-c<s)&&(p=t.skipSpaces(p),!(p<h)))){f=!0;break}return s=t.sCount[o],t.line=a+(f?1:0),u=t.push("fence","code",0),u.info=l,u.content=t.getLines(o+1,a,s,!0),u.markup=d,u.map=[o,t.line],!0},M4e=zt.isSpace,O4e=function(t,o,n,r){var i,s,l,a,c,u,d,f,p,h,v,b,m,x,$,y,w,S,C,_,R=t.lineMax,k=t.bMarks[o]+t.tShift[o],z=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||t.src.charCodeAt(k)!==62)return!1;if(r)return!0;for(h=[],v=[],x=[],$=[],S=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",f=o;f<n&&(_=t.sCount[f]<t.blkIndent,k=t.bMarks[f]+t.tShift[f],z=t.eMarks[f],!(k>=z));f++){if(t.src.charCodeAt(k++)===62&&!_){for(a=t.sCount[f]+1,t.src.charCodeAt(k)===32?(k++,a++,i=!1,y=!0):t.src.charCodeAt(k)===9?(y=!0,(t.bsCount[f]+a)%4===3?(k++,a++,i=!1):i=!0):y=!1,p=a,h.push(t.bMarks[f]),t.bMarks[f]=k;k<z&&(s=t.src.charCodeAt(k),M4e(s));){s===9?p+=4-(p+t.bsCount[f]+(i?1:0))%4:p++;k++}u=k>=z,v.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(y?1:0),x.push(t.sCount[f]),t.sCount[f]=p-a,$.push(t.tShift[f]),t.tShift[f]=k-t.bMarks[f];continue}if(u)break;for(w=!1,l=0,c=S.length;l<c;l++)if(S[l](t,f,n,!0)){w=!0;break}if(w){t.lineMax=f,t.blkIndent!==0&&(h.push(t.bMarks[f]),v.push(t.bsCount[f]),$.push(t.tShift[f]),x.push(t.sCount[f]),t.sCount[f]-=t.blkIndent);break}h.push(t.bMarks[f]),v.push(t.bsCount[f]),$.push(t.tShift[f]),x.push(t.sCount[f]),t.sCount[f]=-1}for(b=t.blkIndent,t.blkIndent=0,C=t.push("blockquote_open","blockquote",1),C.markup=">",C.map=d=[o,0],t.md.block.tokenize(t,o,f),C=t.push("blockquote_close","blockquote",-1),C.markup=">",t.lineMax=R,t.parentType=m,d[1]=t.line,l=0;l<$.length;l++)t.bMarks[l+o]=h[l],t.tShift[l+o]=$[l],t.sCount[l+o]=x[l],t.bsCount[l+o]=v[l];return t.blkIndent=b,!0},D4e=zt.isSpace,F4e=function(t,o,n,r){var i,s,l,a,c=t.bMarks[o]+t.tShift[o],u=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c<u;){if(l=t.src.charCodeAt(c++),l!==i&&!D4e(l))return!1;l===i&&s++}return s<3?!1:(r||(t.line=o+1,a=t.push("hr","hr",0),a.map=[o,t.line],a.markup=Array(s+1).join(String.fromCharCode(i))),!0)},Nw=zt.isSpace;function h0(e,t){var o,n,r,i;return n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],o=e.src.charCodeAt(n++),o!==42&&o!==45&&o!==43||n<r&&(i=e.src.charCodeAt(n),!Nw(i))?-1:n}function p0(e,t){var o,n=e.bMarks[t]+e.tShift[t],r=n,i=e.eMarks[t];if(r+1>=i||(o=e.src.charCodeAt(r++),o<48||o>57))return-1;for(;;){if(r>=i)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<i&&(o=e.src.charCodeAt(r),!Nw(o))?-1:r}function L4e(e,t){var o,n,r=e.level+2;for(o=t+2,n=e.tokens.length-2;o<n;o++)e.tokens[o].level===r&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}var B4e=function(t,o,n,r){var i,s,l,a,c,u,d,f,p,h,v,b,m,x,$,y,w,S,C,_,R,k,z,E,W,A,T,P=o,N=!1,q=!0;if(t.sCount[P]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[P]-t.listIndent>=4&&t.sCount[P]<t.blkIndent)return!1;if(r&&t.parentType==="paragraph"&&t.sCount[P]>=t.blkIndent&&(N=!0),(k=p0(t,P))>=0){if(d=!0,E=t.bMarks[P]+t.tShift[P],m=Number(t.src.slice(E,k-1)),N&&m!==1)return!1}else if((k=h0(t,P))>=0)d=!1;else return!1;if(N&&t.skipSpaces(k)>=t.eMarks[P])return!1;if(r)return!0;for(b=t.src.charCodeAt(k-1),v=t.tokens.length,d?(T=t.push("ordered_list_open","ol",1),m!==1&&(T.attrs=[["start",m]])):T=t.push("bullet_list_open","ul",1),T.map=h=[P,0],T.markup=String.fromCharCode(b),z=!1,A=t.md.block.ruler.getRules("list"),w=t.parentType,t.parentType="list";P<n;){for(R=k,x=t.eMarks[P],u=$=t.sCount[P]+k-(t.bMarks[P]+t.tShift[P]);R<x;){if(i=t.src.charCodeAt(R),i===9)$+=4-($+t.bsCount[P])%4;else if(i===32)$++;else break;R++}if(s=R,s>=x?c=1:c=$-u,c>4&&(c=1),a=u+c,T=t.push("list_item_open","li",1),T.markup=String.fromCharCode(b),T.map=f=[P,0],d&&(T.info=t.src.slice(E,k-1)),_=t.tight,C=t.tShift[P],S=t.sCount[P],y=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=a,t.tight=!0,t.tShift[P]=s-t.bMarks[P],t.sCount[P]=$,s>=x&&t.isEmpty(P+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,P,n,!0),(!t.tight||z)&&(q=!1),z=t.line-P>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=y,t.tShift[P]=C,t.sCount[P]=S,t.tight=_,T=t.push("list_item_close","li",-1),T.markup=String.fromCharCode(b),P=t.line,f[1]=P,P>=n||t.sCount[P]<t.blkIndent||t.sCount[P]-t.blkIndent>=4)break;for(W=!1,l=0,p=A.length;l<p;l++)if(A[l](t,P,n,!0)){W=!0;break}if(W)break;if(d){if(k=p0(t,P),k<0)break;E=t.bMarks[P]+t.tShift[P]}else if(k=h0(t,P),k<0)break;if(b!
Line truncated
|
||||
`,s.map=[o,t.line],!0},I4e=function(t,o,n,r){var i,s,l,a,c,u,d,f=!1,p=t.bMarks[o]+t.tShift[o],h=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||p+3>h||(i=t.src.charCodeAt(p),i!==126&&i!==96)||(c=p,p=t.skipChars(p,i),s=p-c,s<3)||(d=t.src.slice(c,p),l=t.src.slice(p,h),i===96&&l.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(a=o;a++,!(a>=n||(p=c=t.bMarks[a]+t.tShift[a],h=t.eMarks[a],p<h&&t.sCount[a]<t.blkIndent));)if(t.src.charCodeAt(p)===i&&!(t.sCount[a]-t.blkIndent>=4)&&(p=t.skipChars(p,i),!(p-c<s)&&(p=t.skipSpaces(p),!(p<h)))){f=!0;break}return s=t.sCount[o],t.line=a+(f?1:0),u=t.push("fence","code",0),u.info=l,u.content=t.getLines(o+1,a,s,!0),u.markup=d,u.map=[o,t.line],!0},M4e=zt.isSpace,O4e=function(t,o,n,r){var i,s,l,a,c,u,d,f,p,h,v,b,m,x,$,y,w,S,C,_,R=t.lineMax,k=t.bMarks[o]+t.tShift[o],z=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||t.src.charCodeAt(k)!==62)return!1;if(r)return!0;for(h=[],v=[],x=[],$=[],S=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",f=o;f<n&&(_=t.sCount[f]<t.blkIndent,k=t.bMarks[f]+t.tShift[f],z=t.eMarks[f],!(k>=z));f++){if(t.src.charCodeAt(k++)===62&&!_){for(a=t.sCount[f]+1,t.src.charCodeAt(k)===32?(k++,a++,i=!1,y=!0):t.src.charCodeAt(k)===9?(y=!0,(t.bsCount[f]+a)%4===3?(k++,a++,i=!1):i=!0):y=!1,p=a,h.push(t.bMarks[f]),t.bMarks[f]=k;k<z&&(s=t.src.charCodeAt(k),M4e(s));){s===9?p+=4-(p+t.bsCount[f]+(i?1:0))%4:p++;k++}u=k>=z,v.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(y?1:0),x.push(t.sCount[f]),t.sCount[f]=p-a,$.push(t.tShift[f]),t.tShift[f]=k-t.bMarks[f];continue}if(u)break;for(w=!1,l=0,c=S.length;l<c;l++)if(S[l](t,f,n,!0)){w=!0;break}if(w){t.lineMax=f,t.blkIndent!==0&&(h.push(t.bMarks[f]),v.push(t.bsCount[f]),$.push(t.tShift[f]),x.push(t.sCount[f]),t.sCount[f]-=t.blkIndent);break}h.push(t.bMarks[f]),v.push(t.bsCount[f]),$.push(t.tShift[f]),x.push(t.sCount[f]),t.sCount[f]=-1}for(b=t.blkIndent,t.blkIndent=0,C=t.push("blockquote_open","blockquote",1),C.markup=">",C.map=d=[o,0],t.md.block.tokenize(t,o,f),C=t.push("blockquote_close","blockquote",-1),C.markup=">",t.lineMax=R,t.parentType=m,d[1]=t.line,l=0;l<$.length;l++)t.bMarks[l+o]=h[l],t.tShift[l+o]=$[l],t.sCount[l+o]=x[l],t.bsCount[l+o]=v[l];return t.blkIndent=b,!0},D4e=zt.isSpace,F4e=function(t,o,n,r){var i,s,l,a,c=t.bMarks[o]+t.tShift[o],u=t.eMarks[o];if(t.sCount[o]-t.blkIndent>=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(s=1;c<u;){if(l=t.src.charCodeAt(c++),l!==i&&!D4e(l))return!1;l===i&&s++}return s<3?!1:(r||(t.line=o+1,a=t.push("hr","hr",0),a.map=[o,t.line],a.markup=Array(s+1).join(String.fromCharCode(i))),!0)},Nw=zt.isSpace;function h0(e,t){var o,n,r,i;return n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],o=e.src.charCodeAt(n++),o!==42&&o!==45&&o!==43||n<r&&(i=e.src.charCodeAt(n),!Nw(i))?-1:n}function p0(e,t){var o,n=e.bMarks[t]+e.tShift[t],r=n,i=e.eMarks[t];if(r+1>=i||(o=e.src.charCodeAt(r++),o<48||o>57))return-1;for(;;){if(r>=i)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<i&&(o=e.src.charCodeAt(r),!Nw(o))?-1:r}function L4e(e,t){var o,n,r=e.level+2;for(o=t+2,n=e.tokens.length-2;o<n;o++)e.tokens[o].level===r&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}var B4e=function(t,o,n,r){var i,s,l,a,c,u,d,f,p,h,v,b,m,x,$,y,w,S,C,_,R,k,z,E,W,A,T,P=o,N=!1,q=!0;if(t.sCount[P]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[P]-t.listIndent>=4&&t.sCount[P]<t.blkIndent)return!1;if(r&&t.parentType==="paragraph"&&t.sCount[P]>=t.blkIndent&&(N=!0),(k=p0(t,P))>=0){if(d=!0,E=t.bMarks[P]+t.tShift[P],m=Number(t.src.slice(E,k-1)),N&&m!==1)return!1}else if((k=h0(t,P))>=0)d=!1;else return!1;if(N&&t.skipSpaces(k)>=t.eMarks[P])return!1;if(r)return!0;for(b=t.src.charCodeAt(k-1),v=t.tokens.length,d?(T=t.push("ordered_list_open","ol",1),m!==1&&(T.attrs=[["start",m]])):T=t.push("bullet_list_open","ul",1),T.map=h=[P,0],T.markup=String.fromCharCode(b),z=!1,A=t.md.block.ruler.getRules("list"),w=t.parentType,t.parentType="list";P<n;){for(R=k,x=t.eMarks[P],u=$=t.sCount[P]+k-(t.bMarks[P]+t.tShift[P]);R<x;){if(i=t.src.charCodeAt(R),i===9)$+=4-($+t.bsCount[P])%4;else if(i===32)$++;else break;R++}if(s=R,s>=x?c=1:c=$-u,c>4&&(c=1),a=u+c,T=t.push("list_item_open","li",1),T.markup=String.fromCharCode(b),T.map=f=[P,0],d&&(T.info=t.src.slice(E,k-1)),_=t.tight,C=t.tShift[P],S=t.sCount[P],y=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=a,t.tight=!0,t.tShift[P]=s-t.bMarks[P],t.sCount[P]=$,s>=x&&t.isEmpty(P+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,P,n,!0),(!t.tight||z)&&(q=!1),z=t.line-P>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=y,t.tShift[P]=C,t.sCount[P]=S,t.tight=_,T=t.push("list_item_close","li",-1),T.markup=String.fromCharCode(b),P=t.line,f[1]=P,P>=n||t.sCount[P]<t.blkIndent||t.sCount[P]-t.blkIndent>=4)break;for(W=!1,l=0,p=A.length;l<p;l++)if(A[l](t,P,n,!0)){W=!0;break}if(W)break;if(d){if(k=p0(t,P),k<0)break;E=t.bMarks[P]+t.tShift[P]}else if(k=h0(t,P),k<0)break;if(b!
Line truncated
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user