| 12345678910111213 |
- <!doctype html><html><markdown-html license="CC BY-SA 4.0 International" author=PJ568 repo=https://github.com/PJ-568/markdown.html version=1.7.0></markdown-html><head><meta charset=utf-8><meta content="HTML read markdown" name=description><meta content="width=256,initial-scale=1" name=viewport><script defer src=//lib.baomitu.com/marked/4.0.2/marked.min.js></script><script src=//lib.baomitu.com/pjax/0.2.8/pjax.min.js></script><script src=//lib.baomitu.com/translate.js/3.7.2/translate.js></script><script src=//lib.baomitu.com/Darkmode.js/1.5.7/darkmode-js.min.js></script><script>(()=>{let Y=`animationend`,N=`loading`,L=`.loading-bar`,a0=`?p=`,a4=`text/markdown`,Q=`Animated`,a8=`,`,_=`Animation-slideInRight`,aa=`href`,I=null,a7=`</ul></li>`,U=`/`,R=`Animate--slideInRight`,a3=`content-type`,a9=`a[href\$=".md"]`,O=`%`,S=`p`,T=`http://example.com`,ab=`click`,M=`.loading-bar .progress`,K=0,$=`Animation-slideInLeft`,a1=``,Z=`.content, .old-content`,a6=`自生成。`,W=`.markdown-body .content`,ac=`smooth`,V=`index.md`,P=`.markdown-body`,J=1,a2=`README.md`,a5=200,X=Array.from;var s=(async(a)=>{const b=new URL(a);const c=new URLSearchParams(b.search);a=t(c.get(S));return a});var A=(()=>{e._handleResponse=e.handleResponse;e.handleResponse=(async(a,b,c,d)=>{if(b.responseText.startsWith(`<!doctype html><html><markdown-html`)||b.responseText.startsWith(`<!doctype html>
- <html>
- <markdown-html`)){await y(await s(c))}else{e._handleResponse(a,b,c,d)}})});var q=(a=>{a=new URL(a,T).pathname;const b=a.lastIndexOf(U);return a.substring(K,b+ J)});var k=(()=>{const a=document.querySelector(L);const c=document.querySelector(M);clearInterval(b);c.style.width=`100%`;a.classList.remove(N);setTimeout((()=>{c.style.width=K}),400)});var o=(()=>{try{var a=translate.language.getCurrent();var b=translate.language.getLocal();if(a!==b){const a=document.querySelectorAll(`.translate-info`);if(a){a.forEach((a=>{a.remove()}))};var c=document.querySelector(P);var d=document.createElement(`blockquote`);d.classList.add(`translate-info`);var e=document.createElement(S);e.innerText=`当前页面已翻译。您可以:`;var f=document.createElement(S);var g=document.createElement(`a`);g.classList.add(`translate-switch`);g.href=`javascript:;`;g.title=`切换到原语言`;g.innerText=`切换到文章原本的语言`;d.appendChild(e);d.appendChild(g);c.insertBefore(d,c.children[J])}}catch(a){console.error(`检查并提示翻译出错:`+ a)}});var p=(()=>{try{translate.selectLanguageTag.refreshRender()}catch(a){console.error(`刷新翻译出错:`+ a)}});var E=(()=>{const a=document.querySelector(`.to-home`);a.href=window.location.pathname});var v=((a,b=I,c=I)=>{try{document.querySelector(P).innerHTML=`<div class="old-content Animated Animated-remove Animated--reverse Animate--fast Animate--noDelay Animate--slideInLeft">${document.querySelector(W).innerHTML}</div><div class="content Animated Animate--slideInRight">${a}</div>`;firstH1=document.querySelector(`.markdown-body .content h1`);document.title=b?b:(firstH1?firstH1.textContent:c)}catch(a){throw a}});var B=(()=>{if(g){document.querySelector(P).addEventListener(ab,(async(a)=>{const b=a.target.closest(a9);if(b){try{a.preventDefault();j();await y(await s(b.href))}catch(a){console.error(`自定义 PJAX 出错:`+ a)}}}))}});var m=(()=>{try{translate.service.use(`client.edge`);translate.request.listener.start();translate.setAutoDiscriminateLocalLanguage();translate.language.setUrlParamControl();translate.ignore.class.push(`notTranslate`);translate.execute()}catch(a){console.error(`翻译系统出错:`+ a)}});var j=(()=>{const a=document.querySelector(L);const c=document.querySelector(M);var d=20;var e=95;a.classList.add(N);c.style.width=d+ O;clearInterval(b);b=setInterval((()=>{d+=3;if(d>e){d=e};c.style.width=d+ O}),500)});var d=(async()=>await s(window.location.href));var w=((a,b,c)=>new Promise(d=>{var e=K;const f=a.querySelectorAll(b);const g=f.length;const h=(b=>{if(c.includes(b.animationName)&&X(f).includes(b.target)){e++;if(e===g){a.removeEventListener(Y,h);d()}}});a.addEventListener(Y,h)}));var H=(()=>{p();o();translate.execute();k();window.scrollTo({top:K,behavior:ac})});var G=(()=>{n();E();F();D();m();l();A();B()});var F=(()=>{const a=document.querySelector(`.about-btn`);a.href=`?p=${q(window.location.pathname)}about.md`});var C=((a=window.location.href)=>{if(g){if(h>i){history.pushState({url:a,title:document.title,uid:h},I,a);i=h++}else{i=h- J}}});var x=((a,b)=>{v(`<h1>加载失败</h1><p>加载文档<code>${a}</code>时出错:<code>${b}</code>。您可以尝试<a class="refresh-btn" href="">重新加载</a>或<a class="back-btn">返回</a>。</p>`,`加载失败`);C(window.location.origin+ window.location.pathname+ `?p=error.md`);w(document.querySelector(P),Z,[_,$]).then(()=>{C(window.location.origin+ window.location.pathname+ (a?a0+ a:a1))});k()});var r=(()=>q(window.location.href));var l=(()=>{try{const a=window.Pjax||(()=>{});e=new a({selectors:[`head title`,P,`.pjax-reload`],switches:{".markdown-body":a.switches.sideBySide},switchesOptions:{".markdown-body":{classNames:{remove:`Animated Animated--reverse Animate--fast Animate--noDelay`,add:Q,backward:R,forward:`Animate--slideInLeft`}}},cacheBust:!1})}catch(a){console.error(`PJAX 初始化出错:`+ a)}});var n=(()=>{try{const a=window.Darkmode||(()=>{console.warn(`Darkmode.js 不存在?`);return});f=new a()}catch(a){console.error(`初始化 Darkmode.js 出错:`+ a)}});var t=(a=>{if(a){if(u(a)){a=r()+ a};a=new URL(a,T).pathname;if(!a.endsWith(`.md`)){if(!a.endsWith(U)){a+=U};a+=V}};return a});const a=`
- # 关于
- ## MARKDOWN.HTML
- 旨在提供低依赖、一键部署的 Markdown 网页渲染方案。
- 详情请访问 [GitHub](https://github.com/PJ-568/MARKDOWN.HTML) 或 [Gitee](https://gitee.com/PJ-568/MARKDOWN.HTML) 仓库。
- `;var b=I;var c=I;let e;let f;const g=history&&history.pushState;var h=J;var i=K;const u=a=>!a.startsWith(U);const y=async(b,d=I)=>{if(b===I){var e=I;const a=r();if(c){e=a+ a2}else if(c===!1){e=a+ V}else{d=await fetch(r()+ V);if(d.ok&&d.headers.get(a3).startsWith(a4)){c=!1;e=a+ V}else{d=I;c=!0;e=a+ a2}}}else if(b.endsWith(`about.md`)){d=await fetch(b);if(d.ok&&d.headers.get(a3).startsWith(a4)){var f=await d.text();const b=a+ await f.replace(/^# .*/m,a1);d={ok:!0,status:a5,statusText:a6,text:async()=>b}}else{d={ok:!0,status:a5,statusText:a6,text:async()=>a+ `*无更多详细信息*`}}};try{v(await z(b?b:e,d));document.querySelector(`html`).classList.add(`loaded`);H();w(document.querySelector(P),Z,[_,$]).then(()=>{C(window.location.origin+ window.location.pathname+ (b?a0+ b:a1))})}catch(a){x(b?b:e,a)}};const z=async(a,b=I)=>{var c=(a=>{const b=X(a.querySelectorAll(`h1, h2, h3, h4, h5, h6`));if(b.length===K)return `<i>无目录</i>`;var c=`<ul>`;var d=[];b.forEach(a=>{const b=parseInt(a.tagName.charAt(J));const e=a.textContent.toLowerCase().replace(/ /g,`-`).replace(/[^\w\u4e00-\u9fa5-]/g,a1);a.setAttribute(`id`,e);while(d.length>K&&d[d.length- J].level>=b){d.pop();c+=a7};if(d.length===K||d[d.length- J].level<b){c+=`<li><ul>`}else{c+=`</li><li>`};c+=`<a href="#${e}">${a.textContent}</a>`;d.push({level:b})});while(d.length>K){c+=a7;d.pop()};c+=`</ul>`;return c});if(!b){b=await fetch(a);if(!b.ok&&b.headers.get(a3).startsWith(a4)){throw new Error(`请求失败:`+ a+ a8+ b.headers.get(a3)+ a8+ b.status+ a8+ b.statusText)}};var e=marked.parse(await b.text());if(e===a1){e=`<i>空文件</i>`};e=`<details class="outline"><summary><code>${decodeURIComponent(a)}</code></summary></details><hr>${e}`;const f=new DOMParser();const g=f.parseFromString(e,`text/html`);const h=c(g);g.querySelector(`.outline`).innerHTML+=h;const i=g.querySelectorAll(a9);const j=await d();i.forEach(b=>{var c=b.getAttribute(aa);if(u(c)){if(j){c=q(a)+ c}else{c=r()+ c};const d=new URL(c,T).pathname;b.setAttribute(aa,`${window.location.pathname}?p=${d}`)}else if(c.startsWith(U)){b.setAttribute(aa,`${window.location.pathname}?p=${c}`)}});return g.body.innerHTML};const D=async()=>{try{await y(await d())}catch(a){x(await d(),`初始化内容时出错:`+ a)}};window.addEventListener(`DOMContentLoaded`,()=>G());document.addEventListener(`pjax:send`,(()=>{j()}));document.addEventListener(`pjax:complete`,(async()=>{await y(await d());B()}));document.addEventListener(Y,function a(b){if(b.animationName===_){const a=document.querySelector(W);a.classList.remove(Q);a.classList.remove(R)}else if(b.animationName===$){document.querySelector(`.markdown-body .old-content`).remove()}});document.addEventListener(ab,(a=>{if(a.target.closest(`.back-btn`)){window.history.back()}else if(a.target.closest(`.refresh-btn`)){window.location.reload()}else if(a.target.closest(`.dark-btn`)){f.toggle()}else if(a.target.closest(`.translate-switch`)){translate.changeLanguage(translate.language.getLocal())}else if(a.target.closest(`a[href^="#"]`)){const b=a.target.getAttribute(aa);if(b!==`#`){a.preventDefault();const c=document.querySelector(b);if(c){c.scrollIntoView({behavior:ac})}else{console.error(`ID 为 ${targetId} 的元素不存在。`)}}}}));window.onpopstate=(a=>{if(h>J){--h}})})()</script><title>加载中</title><style>*{font-family:Exo,sans-serif;text-decoration:none}:root{background-color:#e6e6e6}::selection{background-color:#dcedc8}body{margin:0}a{color:#66bb6a;cursor:pointer;text-decoration:none}a:hover{color:#2e7d32}.background{z-index:-1;background-color:#e6e6e6;width:100%;height:100%;position:fixed;top:0;left:0}nav{z-index:1;background-color:#616161;justify-content:space-between;align-items:center;width:min-content;display:flex;position:fixed;top:0;right:0}nav a{color:#fafafa;padding:.3rem;transition:color .2s,background-color .2s}nav a:hover{color:#fff;background-color:#212121}.Animated{animation-duration:1s;animation-fill-mode:both}.Animated-remove{position:absolute}.Animated--reverse{animation-direction:reverse}.Animate--fast{animation-duration:.5s}.Animate--noDelay{animation-delay:0s!important}.Animate--slideInRight{animation-name:Animation-slideInRight}@keyframes Animation-slideInRight{0%{transform:translate(200%)}to{transform:translate(0)}}.Animate--slideInLeft{animation-name:Animation-slideInLeft}@keyframes Animation-slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}.markdown-body{color:#212121;box-sizing:border-box;background-color:#fafafa;width:100%;max-width:950px;min-height:300px;margin:3rem auto;position:relative;overflow-x:hidden;box-shadow:0 2px 6px #6464644d}.markdown-body .content,.markdown-body .old-content{margin:2rem}.markdown-body img,.markdown-body video,.markdown-body iframe,.markdown-body object,.markdown-body embed,.markdown-body svg,.markdown-body canvas,.markdown-body audio{max-width:100%}.markdown-body a{transition:color .2s,background-color .2s}.markdown-body a:hover{background-color:#ffffff1a}.markdown-body ul,.markdown-body ol{padding-left:2rem}.markdown-body pre{background-color:#0000000d;border-radius:.1rem;padding:.4rem;overflow-y:scroll}.markdown-body code{font-family:cousine nerd font mono,monospace}.markdown-body p code{background-color:#0000000d;border-radius:.1rem;padding:.2rem;font-size:small}.markdown-body blockquote{background-color:#0000000d;border-left:5px solid #0000001a;margin:.5rem 2rem;padding:.4rem;font-size:small}.markdown-body details{border:1px solid #0000001a;border-radius:.1rem}.markdown-body summary{cursor:pointer;background-color:#0000000d;padding:.4rem;font-weight:700}.markdown-body summary code{cursor:text}.markdown-body details a{margin-left:-2rem}.markdown-body table{border-spacing:0;border-collapse:separate;border:.1rem solid #0000000d;border-radius:.1rem;width:100%}.markdown-body table td,.markdown-body table th{border-top:.1rem solid #0000000d;border-right:.1rem solid #0000000d}.markdown-body table td:last-child,.markdown-body th:last-child{border-right-color:#0000}.markdown-body table thead tr:first-child>*{border-top:.1rem solid #0000}.loading-bar{z-index:2;opacity:0;transition:opacity .4s linear;position:fixed;top:0;left:0;& .progress{background-color:#2e7d32;width:0;height:4px;position:fixed;top:0;left:0;box-shadow:0 0 10px #66bb6ab3}&.loading{opacity:1;transition:none;& .progress{transition:width .4s}}}.translateSelectLanguage{color:inherit;z-index:3;opacity:0;cursor:pointer;background-color:#616161;width:17%;height:100%;position:absolute;top:0;left:50%}.darkmode--activated .markdown-body img,.darkmode--activated .markdown-body svg{isolation:isolate;mix-blend-mode:difference}.darkmode-layer,.darkmode-toggle{z-index:3}@media only screen and (width<=950px){html,body,.markdown-body{height:100%}.markdown-body{min-width:256px;margin:0;top:0;overflow-y:scroll}}</style></head><body><nav><a class=back-btn title=返回> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-arrow-back" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"/></svg> </a><a class=refresh-btn href title=刷新> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-refresh" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"/><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg> </a><a class=to-home title=主页> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-home" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M5 12l-2 0l9 -9l9 9l-2 0"/><path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"/><path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6"/></svg> </a><a id=translate title=更改语言> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-language" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M4 5h7"/><path d="M9 3v2c0 4.418 -2.239 8 -5 8"/><path d="M5 9c0 2.144 2.952 3.908 6.7 4"/><path d="M12 20l4 -9l4 9"/><path d="M19.1 18h-6.2"/></svg> </a><a class=dark-btn href=javascript:; title=切换显示模式> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-brightness" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/><path d="M12 3l0 18"/><path d="M12 9l4.65 -4.65"/><path d="M12 14.3l7.37 -7.37"/><path d="M12 19.6l8.85 -8.85"/></svg> </a><a class=about-btn title=关于> <svg class="icon icon-tabler icons-tabler-outline icon-tabler-info-circle" viewbox="0 0 24 24" fill=none height=24 stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 width=24 xmlns=http://www.w3.org/2000/svg><path d="M0 0h24v24H0z" fill=none stroke=none /><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/><path d="M12 9h.01"/><path d="M11 12h1v4h1"/></svg> </a></nav><div class=markdown-body><div class=content><h1>加载中……</h1><p>请稍等。</p></div></div><div class=loading-bar><div class=progress></div></div><div class=background></div><script src=//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/instant.page/5.1.0/instantpage.min.js></script></body></html>
|