zenn-cli 0.1.102-alpha.0 → 0.1.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;const s=document.getElementsByTagName("head")[0];let o=null;function a(){o&&clearTimeout(o)}const c=(e,t)=>{try{delete window[e]}catch(r){window[e]=void 0}const n=document.getElementById(t);n&&s.removeChild(n)};const d={};class l extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"}),t=d[this.getCacheKey()];t&&(e.innerHTML=t)}render(e){if(!(this.shadowRoot&&e.stylesheet&&e.div))return void this.renderError();const t=`<link rel="stylesheet" href="${e.stylesheet}"><div>${e.div}</div>`;d[this.getCacheKey()]=t,this.shadowRoot.innerHTML=t}renderError(){this.innerHTML=`<div style="text-align: center; margin: 1.5rem 0; color: gray; font-size: 0.9rem;">\n Gistの読み込みに失敗しました<br> \n ${this.getAttribute("page-url")}\n </div>`}getCacheKey(){return encodeURIComponent(`${this.getAttribute("page-url")}-${this.getAttribute("encoded-filename")}`)}async connectedCallback(){if(d[this.getCacheKey()])return;const e=this.getAttribute("page-url"),t=this.getAttribute("encoded-filename");if(!e)return;const n=((r=e).endsWith(".json")?r:r.endsWith(".js")?r.replace(".js",".json"):`${r}.json`)+((null==t?void 0:t.length)?`?file=${t}`:"");var r;try{const e=await function(e){const t=`jsonp_${Date.now()}_${Math.ceil(1e4*Math.random())}`,n=`id_${t}`;return new Promise(((r,i)=>{window[t]=e=>{r(e),a(),c(t,n)};const d=e+(e.includes("?")?"&":"?")+`callback=${t}`,l=document.createElement("script");l.setAttribute("src",d),l.setAttribute("charset","UTF-8"),l.id=n,s.appendChild(l),o=setTimeout((()=>{i(new Error(`Request to ${e} timed out.`)),c(t,n),window[t]=()=>c(t,n)}),6e3),l.addEventListener("error",(()=>{i(new Error(`JSONP request to ${e} failed`)),c(t,n),a()}))}))}(n);this.render(e)}catch(i){console.log(i),this.renderError()}}}const m={};class h extends HTMLElement{constructor(){super();const e=this.getAttribute("src");if(!e)return;this.url=e;const t=e.match(/https?:\/\/twitter.com\/(.*?)\/status\/(\d+)[/?]?/);t&&t[2]&&(this.tweetId=t[2])}async connectedCallback(){this.render(),this.embedTweet()}render(){const e=this.tweetId&&m[this.tweetId]?`style="min-height: ${encodeURIComponent(m[this.tweetId])};"`:"";this.innerHTML=`<div class="embed-tweet-container" ${e}>\n <a href="${this.url}" class="embed-tweet-link" rel="nofollow">${this.url}</a>\n </div>`}async embedTweet(){const e=this.tweetId;if(!this.url||!e)return void console.log(`Invalid tweet URL:${this.url}`);const s=this.querySelector(".embed-tweet-container"),o=this.url.includes("?conversation=none");window.twttr.widgets.createTweet(this.tweetId,s,((e,s)=>{for(var o in s||(s={}))n.call(s,o)&&i(e,o,s[o]);if(t)for(var o of t(s))r.call(s,o)&&i(e,o,s[o]);return e})({align:"center"},o?{conversation:"none"}:{})).then((()=>{var t;null==(t=this.querySelector(".embed-tweet-link"))||t.remove();const n=this.querySelector("iframe");n&&setTimeout((()=>{m[e]=n.style.height}),1e3)}))}}const u={};function y({src:e,id:t}){return new Promise(((n,r)=>{if(document.getElementById(t)){const e=setInterval((()=>{u[t]&&(clearInterval(e),n())}),100)}else{const i=document.createElement("script");i.setAttribute("src",e),i.setAttribute("id",t),document.head.appendChild(i),i.onload=()=>{u[t]=!0,n()},i.onerror=e=>r(e)}}))}class p extends HTMLElement{constructor(){super();const e=document.createElement("div");e.setAttribute("id","katex-container"),this._container=e}async connectedCallback(){this.render()}async render(){"undefined"==typeof katex&&await y({src:"https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js",id:"katex-js"}),function({href:e,id:t}){new Promise(((n,r)=>{if(document.getElementById(t))return n();const i=document.createElement("link");i.setAttribute("href",e),i.setAttribute("rel","stylesheet"),i.setAttribute("id",t),document.head.appendChild(i),i.onload=()=>{n()},i.onerror=e=>r(e)}))}({href:"https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css",id:"katex-css"});const e=!!this.getAttribute("display-mode"),t=this.textContent||this.innerText;null==katex||katex.render(t,this._container,{macros:{"\\RR":"\\mathbb{R}"},throwOnError:!1,displayMode:e}),this.innerHTML=this._container.innerHTML}}class w extends HTMLElement{constructor(){super();const e=this.childNodes[0];this._source=e.textContent||e.innerText,e.remove();const t=document.createElement("div");this.appendChild(t),this._tmpContainer=t;const n=document.createElement("div");this.appendChild(n),this._svgContainer=n}async connectedCallback(){this.render()}async render(){if(await async function(){if("undefined"==typeof mermaid){await y({src:"https://cdn.jsdelivr.net/npm/mermaid@8.13/dist/mermaid.min.js",id:"mermaid-js"});const e="default";mermaid.initialize({mermaid:{startOnLoad:!1}}),mermaid.mermaidAPI.initialize({startOnLoad:!1,securityLevel:"strict",theme:e,er:{useMaxWidth:!0},flowchart:{useMaxWidth:!0,htmlLabels:!1},sequence:{useMaxWidth:!0},class:{useMaxWidth:!0},journey:{useMaxWidth:!0}})}}(),!this._source)return;const e=(t=this._source,{syntaxError:{yes:!(()=>{try{return mermaid.mermaidAPI.parse(t),!0}catch(e){return console.log("mermaid.js のレンダリングでシンタックスエラーが発生しました",e),!1}})(),message:"<li>シンタックスエラーです</li>"},charLimitOver:{yes:t.length>2e3,message:"<li>ブロックあたりの文字数上限は2000です</li>"},chainingOfLinksOver:{yes:(t.match(/&/g)||[]).length>10,message:"<li>ブロックあたりの<code>&</code>によるチェイン上限は10です</li>"}});var t;if(Object.values(e).map((e=>e.yes)).includes(!0))return void(this.innerHTML=`\n <p>\n <span>mermaidをレンダリングできません。</span>\n <ul>\n ${e.syntaxError.yes?e.syntaxError.message:""}\n ${e.charLimitOver.yes?e.charLimitOver.message:""}\n ${e.chainingOfLinksOver.yes?e.chainingOfLinksOver.message:""}\n </ul>\n </p>\n `);null==mermaid||mermaid.mermaidAPI.render(`mermaid-container-${Date.now().valueOf()}-render`,this._source,(e=>{this._svgContainer.innerHTML=e}),this._tmpContainer)}}customElements.define("embed-gist",l),customElements.define("embed-tweet",h),customElements.define("embed-katex",p),customElements.define("embed-mermaid",w);
1
+ var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;const s=document.getElementsByTagName("head")[0];let o=null;function a(){o&&clearTimeout(o)}const c=(e,t)=>{try{delete window[e]}catch(r){window[e]=void 0}const n=document.getElementById(t);n&&s.removeChild(n)};const d={};class l extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"}),t=d[this.getCacheKey()];t&&(e.innerHTML=t)}render(e){if(!(this.shadowRoot&&e.stylesheet&&e.div))return void this.renderError();const t=`<link rel="stylesheet" href="${e.stylesheet}"><div>${e.div}</div>`;d[this.getCacheKey()]=t,this.shadowRoot.innerHTML=t}renderError(){this.innerHTML=`<div style="text-align: center; margin: 1.5rem 0; color: gray; font-size: 0.9rem;">\n Gistの読み込みに失敗しました<br> \n ${this.getAttribute("page-url")}\n </div>`}getCacheKey(){return encodeURIComponent(`${this.getAttribute("page-url")}-${this.getAttribute("encoded-filename")}`)}async connectedCallback(){if(d[this.getCacheKey()])return;const e=this.getAttribute("page-url"),t=this.getAttribute("encoded-filename");if(!e)return;const n=((r=e).endsWith(".json")?r:r.endsWith(".js")?r.replace(".js",".json"):`${r}.json`)+((null==t?void 0:t.length)?`?file=${t}`:"");var r;try{const e=await function(e){const t=`jsonp_${Date.now()}_${Math.ceil(1e4*Math.random())}`,n=`id_${t}`;return new Promise(((r,i)=>{window[t]=e=>{r(e),a(),c(t,n)};const d=e+(e.includes("?")?"&":"?")+`callback=${t}`,l=document.createElement("script");l.setAttribute("src",d),l.setAttribute("charset","UTF-8"),l.id=n,s.appendChild(l),o=setTimeout((()=>{i(new Error(`Request to ${e} timed out.`)),c(t,n),window[t]=()=>c(t,n)}),6e3),l.addEventListener("error",(()=>{i(new Error(`JSONP request to ${e} failed`)),c(t,n),a()}))}))}(n);this.render(e)}catch(i){console.log(i),this.renderError()}}}const m={};class h extends HTMLElement{constructor(){super();const e=this.getAttribute("src");if(!e)return;this.url=e;const t=e.match(/https?:\/\/twitter.com\/(.*?)\/status\/(\d+)[/?]?/);t&&t[2]&&(this.tweetId=t[2])}async connectedCallback(){this.render(),this.embedTweet()}render(){const e=this.tweetId&&m[this.tweetId]?`style="min-height: ${encodeURIComponent(m[this.tweetId])};"`:"";this.innerHTML=`<div class="embed-tweet-container" ${e}>\n <a href="${this.url}" class="embed-tweet-link" rel="nofollow">${this.url}</a>\n </div>`}async embedTweet(){const e=this.tweetId;if(!this.url||!e)return void console.log(`Invalid tweet URL:${this.url}`);const s=this.querySelector(".embed-tweet-container"),o=this.url.includes("?conversation=none");window.twttr.widgets.createTweet(this.tweetId,s,((e,s)=>{for(var o in s||(s={}))n.call(s,o)&&i(e,o,s[o]);if(t)for(var o of t(s))r.call(s,o)&&i(e,o,s[o]);return e})({align:"center"},o?{conversation:"none"}:{})).then((()=>{var t;null==(t=this.querySelector(".embed-tweet-link"))||t.remove();const n=this.querySelector("iframe");n&&setTimeout((()=>{m[e]=n.style.height}),1e3)}))}}const u={};function p({src:e,id:t}){return new Promise(((n,r)=>{if(document.getElementById(t)){const e=setInterval((()=>{u[t]&&(clearInterval(e),n())}),100)}else{const i=document.createElement("script");i.setAttribute("src",e),i.setAttribute("id",t),document.head.appendChild(i),i.onload=()=>{u[t]=!0,n()},i.onerror=e=>r(e)}}))}class b extends HTMLElement{constructor(){super();const e=document.createElement("div");e.setAttribute("id","katex-container"),this._container=e}async connectedCallback(){this.render()}async render(){"undefined"==typeof katex&&await p({src:"https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js",id:"katex-js"}),function({href:e,id:t}){new Promise(((n,r)=>{if(document.getElementById(t))return n();const i=document.createElement("link");i.setAttribute("href",e),i.setAttribute("rel","stylesheet"),i.setAttribute("id",t),document.head.appendChild(i),i.onload=()=>{n()},i.onerror=e=>r(e)}))}({href:"https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css",id:"katex-css"});const e=!!this.getAttribute("display-mode"),t=this.textContent||this.innerText;null==katex||katex.render(t,this._container,{macros:{"\\RR":"\\mathbb{R}"},throwOnError:!1,displayMode:e}),this.innerHTML=this._container.innerHTML}}class v extends HTMLElement{async connectedCallback(){const e=document.createElement("div");this.appendChild(e),this._tmpContainer=e,this.observer=new IntersectionObserver((e=>{e.forEach((e=>{var t;if(e.isIntersecting){if(this.render(),!this._tmpContainer)return void console.error("Something wrong with _tmpContainer");null==(t=this.observer)||t.unobserve(this._tmpContainer)}}))}),{rootMargin:"1000px 0px"}),this._tmpContainer&&this.observer.observe(this._tmpContainer)}disconnectedCallback(){this.observer&&(this._tmpContainer&&this.observer.unobserve(this._tmpContainer),this.observer.disconnect())}async render(){await async function(){if("undefined"==typeof mermaid){await p({src:"https://cdn.jsdelivr.net/npm/mermaid@8.13/dist/mermaid.min.js",id:"mermaid-js"});const e="default";mermaid.initialize({mermaid:{startOnLoad:!1}}),mermaid.mermaidAPI.initialize({startOnLoad:!1,securityLevel:"strict",theme:e,er:{useMaxWidth:!0},flowchart:{useMaxWidth:!0,htmlLabels:!1},sequence:{useMaxWidth:!0},class:{useMaxWidth:!0},journey:{useMaxWidth:!0}})}}();const e=this.textContent||this.innerText;if(!e)return;this.childNodes[0].setAttribute("style","display:none");const t=(n=e,{syntaxError:{yes:!(()=>{try{return mermaid.mermaidAPI.parse(n),!0}catch(e){return console.log("mermaid.js のレンダリングでシンタックスエラーが発生しました",e),!1}})(),message:"<li>シンタックスエラーです</li>"},charLimitOver:{yes:n.length>2e3,message:"<li>ブロックあたりの文字数上限は2000です</li>"},chainingOfLinksOver:{yes:(n.match(/&/g)||[]).length>10,message:"<li>ブロックあたりの<code>&</code>によるチェイン上限は10です</li>"}});var n;if(Object.values(t).map((e=>e.yes)).includes(!0))return void(this.innerHTML=`\n <p>\n <span>mermaidをレンダリングできません。</span>\n <ul>\n ${t.syntaxError.yes?t.syntaxError.message:""}\n ${t.charLimitOver.yes?t.charLimitOver.message:""}\n ${t.chainingOfLinksOver.yes?t.chainingOfLinksOver.message:""}\n </ul>\n </p>\n `);null==mermaid||mermaid.mermaidAPI.render(`mermaid-container-${Date.now().valueOf()}-render`,e,(e=>{const t=document.createElement("div");this.appendChild(t),t.innerHTML=e}),this._tmpContainer)}}customElements.define("embed-gist",l),customElements.define("embed-tweet",h),customElements.define("embed-katex",b),customElements.define("embed-mermaid",v);
@@ -0,0 +1 @@
1
+ :root{--c-primary:#0f93ff;--c-primary-darker:#0087f5;--c-primary-bg:#e3f2ff;--c-body:rgba(0, 0, 0, 0.82);--c-gray:#606971;--c-gray-border:#cfdce6;--c-gray-bg:#edf2f7;--c-error:#fa5d5d;--c-error-bg:#fff0f0;--font-base:-apple-system,'BlinkMacSystemFont','Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif,'Segoe UI Emoji';--font-code:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace,'Segoe UI Emoji'}html{box-sizing:border-box;font-size:16px;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5}*,:after,:before{box-sizing:inherit}body{margin:0;color:var(--c-body);word-break:break-word;word-wrap:break-word;font-family:var(--font-base)}img{max-width:100%}blockquote,dd,dl,dt,p,section{margin:0}a{text-decoration:none;color:inherit}h1,h2,h3,h4,h5,h6{margin:0;font-weight:700;line-height:1.4;outline:0}ol,ul{margin:0;padding:0;list-style:none}li{margin:0;padding:0}hr{border:none}button{font-family:inherit;border:none;cursor:pointer;appearance:none;background:0 0;font-size:inherit;font-weight:inherit;font-family:inherit;transition:.25s;padding:0;margin:0;line-height:1.3;color:var(--c-body)}code{font-family:var(--font-code)}.znc{line-height:1.9}.znc>:first-child{margin-top:0}.znc cite,.znc em,.znc i{font-style:italic}.znc strong{font-weight:700}.znc a{color:#0f83fd}.znc a:hover{text-decoration:underline}.znc p+p{margin-top:1.5em}.znc ol,.znc ul{margin:1.4rem 0;line-height:1.7}.znc ol>li,.znc ul>li{margin:.4rem 0}.znc ol ol,.znc ol ul,.znc ul ol,.znc ul ul{margin:.2em 0}.znc ol p,.znc ul p{margin:0}.znc ul{padding-left:1.8em}.znc ul>li{list-style:disc}.znc ul>li::marker{font-size:1.1em;color:#5e6478}.znc ol{padding-left:1.7em}.znc ol>li{list-style:decimal;padding-left:.2em}.znc ol>li::marker{color:#535872;font-weight:600;letter-spacing:-.05em}.znc .contains-task-list li:before{content:none!important}.znc .task-list-item-checkbox{margin-left:-1.5em;font-size:1em;pointer-events:none}.znc h1+p,.znc h2+p,.znc h3+p,.znc h4+p,.znc h5+p,.znc h6+p{margin-top:.3em}.znc h1,.znc h2{margin-top:2.3em;margin-bottom:.5em}.znc h3,.znc h4,.znc h5,.znc h6{margin-top:2.25em;margin-bottom:.5em}.znc h1{padding-bottom:.2em;margin-bottom:1.1rem;font-size:1.7em;position:relative;border-bottom:solid 1px rgba(92,147,187,.17)}.znc h2{font-size:1.5em}.znc h3{font-size:1.3em}.znc h4{font-size:1.1em}.znc h5{font-size:1em}.znc h6{font-size:.9em}@media screen and (max-width:576px){.znc h1{font-size:1.6em}.znc h2{font-size:1.4em}.znc h3{font-size:1.2em}.znc h4{font-size:1.1em}.znc h5{font-size:1em}.znc h6{font-size:.85em}}.znc hr{border-top:2px solid rgba(92,147,187,.17);margin:2.5rem 0}.znc blockquote{font-size:.97em;margin:1.4rem 0;border-left:solid 3px #9dacb7;padding:2px 0 2px .7em;color:#505c64}.znc blockquote p{margin:1rem 0}.znc blockquote>:first-child{margin-top:0}.znc blockquote>:last-child{margin-bottom:0}.znc blockquote.twitter-tweet{display:none}.znc table{margin:1.2rem auto;width:auto;border-collapse:collapse;font-size:.95em;line-height:1.5;word-break:normal;display:block;overflow:auto;-webkit-overflow-scrolling:touch}.znc td,.znc th{padding:.5rem;border:solid 1px #cfdce6;background:#fff}.znc th{font-weight:700;background:#edf2f7}.znc code{padding:.2em .4em;background:rgba(33,90,160,.07);font-size:.85em;border-radius:4px;vertical-align:.08em}.znc .code-block-filename,.znc code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";-webkit-font-smoothing:antialiased}.znc pre{margin:1.3rem 0;background:#1a2638;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:.7em;box-shadow:0 4px 6px -1px rgba(0,14,30,.15);word-break:normal;word-wrap:normal;display:flex}.znc pre:after{content:"";width:8px;flex-shrink:0}.znc pre code{margin:0;padding:0;background:0 0;font-size:.9em;color:#fff}.znc pre>code{display:block;padding:1.1rem}@media screen and (max-width:576px){.znc pre>code{padding:1rem .8rem;font-size:.85em}}.znc .code-block-container{position:relative;margin:1.3rem 0}.znc .code-block-container pre{margin:0}.znc .code-block-filename{display:table;max-width:100%;background:#323e52;color:rgba(255,255,255,.9);font-size:12px;line-height:1.3;border-radius:6px 6px 0 0;padding:6px 12px 20px;margin-bottom:-16px}.znc .code-block-filename-container+pre{border-top-left-radius:0}.znc img:not(.emoji){margin:1.5rem auto;display:table;max-width:100%;height:auto}.znc img+br{display:none}.znc img~em{display:block;margin:-1rem auto 0;line-height:1.3;text-align:center;color:#77838c;font-size:.92em}.znc details{font-size:.95em;margin:1rem 0;line-height:1.7}.znc summary{cursor:pointer;outline:0;padding:.7em .7em .7em .9em;border:solid 1px rgba(92,147,187,.19);color:var(--c-contrast);font-size:.9em;border-radius:9px;box-shadow:0 2px 4px -2px rgba(0,0,0,.15)}.znc summary::-webkit-details-marker{color:#77838c}.znc details[open] summary{border-radius:5px 5px 0 0;box-shadow:none;background:#f1f5f9;border-bottom:none}.znc .details-content{padding:.5em .9em;border:solid 1px rgba(92,147,187,.2);border-radius:0 0 5px 5px}.znc .details-content>*{margin:.5em 0}.znc .embed-codepen,.znc .embed-codesandbox,.znc .embed-gist,.znc .embed-jsfiddle,.znc .embed-mermaid,.znc .embed-slideshare,.znc .embed-speakerdeck,.znc .embed-stackblitz,.znc .embed-tweet,.znc .embed-youtube{margin:1.5rem 0}.znc .embed-codepen,.znc .embed-jsfiddle,.znc .embed-slideshare,.znc .embed-speakerdeck,.znc .embed-stackblitz,.znc .embed-youtube{padding-bottom:calc(56.25% + 38px);position:relative;width:100%;height:0}.znc .embed-codepen iframe,.znc .embed-jsfiddle iframe,.znc .embed-slideshare iframe,.znc .embed-speakerdeck iframe,.znc .embed-stackblitz iframe,.znc .embed-youtube iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.znc .embed-slideshare iframe{border:1px solid #1a2638}.znc .embed-zenn-link{margin:1rem auto}.znc .embed-zenn-link iframe{height:125px;width:100%;display:block}.znc embed-katex:not([display-mode="1"]){display:inline-flex;overflow-x:auto;max-width:100%;-ms-overflow-style:none;scrollbar-width:none}.znc embed-katex:not([display-mode="1"])::-webkit-scrollbar{display:none}.znc embed-katex[display-mode="1"]{display:block;width:100%;overflow-x:auto}.znc embed-mermaid svg{height:auto}.znc pre.zenn-mermaid{background:0 0;color:#93a5b1;font-size:.9rem}.znc pre[class*=language-]{position:relative}.znc .token.namespace{opacity:.7}.znc .token.cdata,.znc .token.comment,.znc .token.doctype,.znc .token.prolog{color:#94a1b3}.znc .token.boolean,.znc .token.number,.znc .token.operator{color:#ffc56d}.znc .token.attr-name,.znc .token.string{color:#ffc56d}.znc .language-css .token.string,.znc .style .token.string,.znc .token.entity,.znc .token.url{color:#ffc56d}.znc .token.selector{color:#ff8fa3}.znc .token.atrule,.znc .token.attr-value,.znc .token.important,.znc .token.keyword{color:#ff8fa3}.znc .token.deleted{color:#ff8fa3}.znc .token.inserted{color:#b4ff9b}.znc .token.deleted:not(.prefix){background:rgba(218,54,50,.2);color:inherit;display:block}.znc .token.prefix{user-select:none}.znc .token.inserted:not(.prefix){background:rgba(0,146,27,.2);color:inherit;display:block}.znc .token.prefix.unchanged{display:none}.znc .token.unchanged>.token.prefix.unchanged{display:inline}.znc .token.coord{color:#aad4ff}.znc .token.regex,.znc .token.statement{color:#ffc56d}.znc .token.placeholder,.znc .token.variable{color:#fff}.znc .token.bold,.znc .token.important,.znc .token.statement{font-weight:700}.znc .token.punctuation{color:#939bc1}.znc .token.entity{cursor:help}.znc .token.italic{font-style:italic}.znc .token.function,.znc .token.property,.znc .token.tag{color:#38c7ff}.znc .token.attr-name{color:#ff8fa3}.znc .token.attr-value{color:#ffc56d}.znc .token.script,.znc .token.style{color:#ffc56d}.znc .token.script .token.keyword{color:#ffc56d}.znc .msg{position:relative;margin:1.5rem 0;padding:21px 15px 21px 45px;border-radius:6px;background:#fff6e4;color:rgba(0,0,0,.65);font-size:.94em;line-height:1.6}.znc .msg:before{position:absolute;left:15px;top:50%;transform:translateY(-52%);content:"!";display:block;width:20px;height:20px;line-height:20px;font-size:13px;text-align:center;color:#fff;background:#ffb84c;font-weight:700;border-radius:50%}.znc .msg>*{margin:.5rem 0}.znc .msg>:first-child,.znc .msg>:last-child{margin:0}.znc .msg a{color:inherit;text-decoration:underline}.znc .msg.alert{background:#ffeff2}.znc .msg.alert:before{background:#ff7670}.znc .footnotes{margin-top:3rem;color:#77838c;font-size:.9em}.znc .footnotes li::marker{color:#77838c}.znc .footnotes-title{padding-bottom:3px;border-bottom:solid 1px #cfdce6;font-weight:700;font-size:15px}.znc .footnotes-list{margin:13px 0 0}.znc .footnotes-twemoji{border:none;margin:0 7px 0 0;vertical-align:-3px}
@@ -611,4 +611,4 @@ var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.ha
611
611
  .layout__main {
612
612
  flex: 1;
613
613
  }
614
- `;const ht=()=>{const e=s.useLocation();return m.exports.useEffect((()=>{e.hash||window.scrollTo(0,0)}),[e]),null},_t=()=>(m.exports.useEffect((()=>{!function(e,t){if(!t)return e();if(void 0===x){const e=document.createElement("link").relList;x=e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}Promise.all(t.map((e=>{if(e in k)return;k[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":x,t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",t)})):void 0}))).then((()=>e()))}((()=>import("./index.879339ba.js")),void 0)}),[]),o.createElement($,null,o.createElement(j,null,o.createElement(s.RoconRoot,null,o.createElement(ht,null),o.createElement(ut,null,o.createElement(Qe,null))))));y.render(o.createElement(_t,null),document.getElementById("root"));
614
+ `;const ht=()=>{const e=s.useLocation();return m.exports.useEffect((()=>{e.hash||window.scrollTo(0,0)}),[e]),null},_t=()=>(m.exports.useEffect((()=>{!function(e,t){if(!t)return e();if(void 0===x){const e=document.createElement("link").relList;x=e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}Promise.all(t.map((e=>{if(e in k)return;k[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":x,t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((e,t)=>{a.addEventListener("load",e),a.addEventListener("error",t)})):void 0}))).then((()=>e()))}((()=>import("./index.4ffda0fe.js")),void 0)}),[]),o.createElement($,null,o.createElement(j,null,o.createElement(s.RoconRoot,null,o.createElement(ht,null),o.createElement(ut,null,o.createElement(Qe,null))))));y.render(o.createElement(_t,null),document.getElementById("root"));
@@ -9,9 +9,9 @@
9
9
  content="no-cache, no-store, must-revalidate"
10
10
  />
11
11
  <title>Zenn CLI</title>
12
- <script type="module" crossorigin src="/assets/index.19bfaa06.js"></script>
12
+ <script type="module" crossorigin src="/assets/index.9d6359d1.js"></script>
13
13
  <link rel="modulepreload" href="/assets/vendor.63f776be.js">
14
- <link rel="stylesheet" href="/assets/index.1534b6af.css">
14
+ <link rel="stylesheet" href="/assets/index.9a2c789f.css">
15
15
  <script>window.twttr=(function(f,b,g){var e,c=f.getElementsByTagName(b)[0],a=window.twttr||{};if(f.getElementById(g)){return a}e=f.createElement(b);e.id=g;e.src="https://platform.twitter.com/widgets.js";c.parentNode.insertBefore(e,c);a._e=[];a.ready=function(d){a._e.push(d)};return a}(document,"script","twitter-wjs"));</script></head>
16
16
  <body>
17
17
  <noscript>You need to enable JavaScript to run CLI.</noscript>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zenn-cli",
3
3
  "license": "MIT",
4
- "version": "0.1.102-alpha.0",
4
+ "version": "0.1.103",
5
5
  "description": "Preview Zenn content locally.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "node-fetch": "^2.6.1",
49
49
  "open": "^8.2.0",
50
50
  "ws": "^7.4.6",
51
- "zenn-markdown-html": "^0.1.102-alpha.0"
51
+ "zenn-markdown-html": "^0.1.103"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@material-ui/core": "^4.11.4",
@@ -88,10 +88,10 @@
88
88
  "typescript": "^4.2.4",
89
89
  "vite": "^2.3.7",
90
90
  "wait-on": "^6.0.0",
91
- "zenn-content-css": "^0.1.102-alpha.0",
92
- "zenn-embed-elements": "^0.1.102-alpha.0"
91
+ "zenn-content-css": "^0.1.103",
92
+ "zenn-embed-elements": "^0.1.103"
93
93
  },
94
- "gitHead": "903fccba99be75bfe75e4f5ed5ac4f404ce3a8d0",
94
+ "gitHead": "e25396d2fb4cc49c362d8529b9eaa10f193b9c1d",
95
95
  "publishConfig": {
96
96
  "access": "public"
97
97
  },
@@ -1 +0,0 @@
1
- :root{--c-primary:#0f93ff;--c-primary-darker:#0087f5;--c-primary-bg:#e3f2ff;--c-body:rgba(0, 0, 0, 0.82);--c-gray:#606971;--c-gray-border:#cfdce6;--c-gray-bg:#edf2f7;--c-error:#fa5d5d;--c-error-bg:#fff0f0;--font-base:-apple-system,'BlinkMacSystemFont','Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,sans-serif,'Segoe UI Emoji';--font-code:'SFMono-Regular',Consolas,'Liberation Mono',Menlo,monospace,'Segoe UI Emoji'}html{box-sizing:border-box;font-size:16px;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5}*,:after,:before{box-sizing:inherit}body{margin:0;color:var(--c-body);word-break:break-word;word-wrap:break-word;font-family:var(--font-base)}img{max-width:100%}blockquote,dd,dl,dt,p,section{margin:0}a{text-decoration:none;color:inherit}h1,h2,h3,h4,h5,h6{margin:0;font-weight:700;line-height:1.4;outline:0}ol,ul{margin:0;padding:0;list-style:none}li{margin:0;padding:0}hr{border:none}button{font-family:inherit;border:none;cursor:pointer;appearance:none;background:0 0;font-size:inherit;font-weight:inherit;font-family:inherit;transition:.25s;padding:0;margin:0;line-height:1.3;color:var(--c-body)}code{font-family:var(--font-code)}.znc{line-height:1.9}.znc>:first-child{margin-top:0}.znc cite,.znc em,.znc i{font-style:italic}.znc strong{font-weight:700}.znc a{color:#0f83fd}.znc a:hover{text-decoration:underline}.znc p+p{margin-top:1.5em}.znc ol,.znc ul{margin:1.4rem 0;line-height:1.7}.znc ol>li,.znc ul>li{margin:.4rem 0}.znc ol ol,.znc ol ul,.znc ul ol,.znc ul ul{margin:.2em 0}.znc ol p,.znc ul p{margin:0}.znc ul{padding-left:1.8em}.znc ul>li{list-style:disc}.znc ul>li::marker{font-size:1.1em;color:#5e6478}.znc ol{padding-left:1.7em}.znc ol>li{list-style:decimal;padding-left:.2em}.znc ol>li::marker{color:#535872;font-weight:600;letter-spacing:-.05em}.znc .contains-task-list li:before{content:none!important}.znc .task-list-item-checkbox{margin-left:-1.5em;font-size:1em;pointer-events:none}.znc h1+p,.znc h2+p,.znc h3+p,.znc h4+p,.znc h5+p,.znc h6+p{margin-top:.3em}.znc h1,.znc h2{margin-top:2.3em;margin-bottom:.5em}.znc h3,.znc h4,.znc h5,.znc h6{margin-top:2.25em;margin-bottom:.5em}.znc h1{padding-bottom:.2em;margin-bottom:1.1rem;font-size:1.7em;position:relative;border-bottom:solid 1px rgba(92,147,187,.17)}.znc h2{font-size:1.5em}.znc h3{font-size:1.3em}.znc h4{font-size:1.1em}.znc h5{font-size:1em}.znc h6{font-size:.9em}@media screen and (max-width:576px){.znc h1{font-size:1.6em}.znc h2{font-size:1.4em}.znc h3{font-size:1.2em}.znc h4{font-size:1.1em}.znc h5{font-size:1em}.znc h6{font-size:.85em}}.znc hr{border-top:2px solid rgba(92,147,187,.17);margin:2.5rem 0}.znc blockquote{font-size:.97em;margin:1.4rem 0;border-left:solid 3px #9dacb7;padding:2px 0 2px .7em;color:#505c64}.znc blockquote p{margin:1rem 0}.znc blockquote>:first-child{margin-top:0}.znc blockquote>:last-child{margin-bottom:0}.znc blockquote.twitter-tweet{display:none}.znc table{margin:1.2rem auto;width:auto;border-collapse:collapse;font-size:.95em;line-height:1.5;word-break:normal;display:block;overflow:auto;-webkit-overflow-scrolling:touch}.znc td,.znc th{padding:.5rem;border:solid 1px #cfdce6;background:#fff}.znc th{font-weight:700;background:#edf2f7}.znc code{padding:.2em .4em;background:rgba(33,90,160,.07);font-size:.85em;border-radius:4px;vertical-align:.08em}.znc .code-block-filename,.znc code{font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";-webkit-font-smoothing:antialiased}.znc pre{margin:1.3rem 0;background:#1a2638;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:.7em;box-shadow:0 4px 6px -1px rgba(0,14,30,.15);word-break:normal;word-wrap:normal;display:flex}.znc pre:after{content:"";width:8px;flex-shrink:0}.znc pre code{margin:0;padding:0;background:0 0;font-size:.9em;color:#fff}.znc pre>code{display:block;padding:1.1rem}@media screen and (max-width:576px){.znc pre>code{padding:1rem .8rem;font-size:.85em}}.znc .code-block-container{position:relative;margin:1.3rem 0}.znc .code-block-container pre{margin:0}.znc .code-block-filename{display:table;max-width:100%;background:#323e52;color:rgba(255,255,255,.9);font-size:12px;line-height:1.3;padding:6px 12px 4px;border-radius:6px 6px 0 0}.znc .code-block-filename-container+pre{border-top-left-radius:0}.znc img:not(.emoji){margin:1.5rem auto;display:table;max-width:100%;height:auto}.znc img+br{display:none}.znc img~em{display:block;margin:-1rem auto 0;line-height:1.3;text-align:center;color:#77838c;font-size:.92em}.znc details{font-size:.95em;margin:1rem 0;line-height:1.7}.znc summary{cursor:pointer;outline:0;padding:.7em .7em .7em .9em;border:solid 1px rgba(92,147,187,.19);color:var(--c-contrast);font-size:.9em;border-radius:9px;box-shadow:0 2px 4px -2px rgba(0,0,0,.15)}.znc summary::-webkit-details-marker{color:#77838c}.znc details[open] summary{border-radius:5px 5px 0 0;box-shadow:none;background:#f1f5f9;border-bottom:none}.znc .details-content{padding:.5em .9em;border:solid 1px rgba(92,147,187,.2);border-radius:0 0 5px 5px}.znc .details-content>*{margin:.5em 0}.znc .embed-codepen,.znc .embed-codesandbox,.znc .embed-gist,.znc .embed-jsfiddle,.znc .embed-mermaid,.znc .embed-slideshare,.znc .embed-speakerdeck,.znc .embed-stackblitz,.znc .embed-tweet,.znc .embed-youtube{margin:1.5rem 0}.znc .embed-codepen,.znc .embed-jsfiddle,.znc .embed-slideshare,.znc .embed-speakerdeck,.znc .embed-stackblitz,.znc .embed-youtube{padding-bottom:calc(56.25% + 38px);position:relative;width:100%;height:0}.znc .embed-codepen iframe,.znc .embed-jsfiddle iframe,.znc .embed-slideshare iframe,.znc .embed-speakerdeck iframe,.znc .embed-stackblitz iframe,.znc .embed-youtube iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}.znc .embed-slideshare iframe{border:1px solid #1a2638}.znc .embed-zenn-link{margin:1rem auto}.znc .embed-zenn-link iframe{height:125px;width:100%;display:block}.znc embed-katex:not([display-mode="1"]){display:inline-flex;overflow-x:auto;max-width:100%;-ms-overflow-style:none;scrollbar-width:none}.znc embed-katex:not([display-mode="1"])::-webkit-scrollbar{display:none}.znc embed-katex[display-mode="1"]{display:block;width:100%;overflow-x:auto}.znc embed-mermaid svg{height:auto}.znc pre.zenn-mermaid{background:0 0;color:#93a5b1;font-size:.9rem}.znc pre[class*=language-]{position:relative}.znc .token.namespace{opacity:.7}.znc .token.cdata,.znc .token.comment,.znc .token.doctype,.znc .token.prolog{color:#94a1b3}.znc .token.boolean,.znc .token.number,.znc .token.operator{color:#ffc56d}.znc .token.attr-name,.znc .token.string{color:#ffc56d}.znc .language-css .token.string,.znc .style .token.string,.znc .token.entity,.znc .token.url{color:#ffc56d}.znc .token.selector{color:#ff8fa3}.znc .token.atrule,.znc .token.attr-value,.znc .token.important,.znc .token.keyword{color:#ff8fa3}.znc .token.deleted{color:#ff8fa3}.znc .token.inserted{color:#b4ff9b}.znc .token.deleted:not(.prefix){background:rgba(218,54,50,.2);color:inherit;display:block}.znc .token.prefix{user-select:none}.znc .token.inserted:not(.prefix){background:rgba(0,146,27,.2);color:inherit;display:block}.znc .token.prefix.unchanged{display:none}.znc .token.unchanged>.token.prefix.unchanged{display:inline}.znc .token.coord{color:#aad4ff}.znc .token.regex,.znc .token.statement{color:#ffc56d}.znc .token.placeholder,.znc .token.variable{color:#fff}.znc .token.bold,.znc .token.important,.znc .token.statement{font-weight:700}.znc .token.punctuation{color:#939bc1}.znc .token.entity{cursor:help}.znc .token.italic{font-style:italic}.znc .token.function,.znc .token.property,.znc .token.tag{color:#38c7ff}.znc .token.attr-name{color:#ff8fa3}.znc .token.attr-value{color:#ffc56d}.znc .token.script,.znc .token.style{color:#ffc56d}.znc .token.script .token.keyword{color:#ffc56d}.znc .msg{position:relative;margin:1.5rem 0;padding:21px 15px 21px 45px;border-radius:6px;background:#fff6e4;color:rgba(0,0,0,.65);font-size:.94em;line-height:1.6}.znc .msg:before{position:absolute;left:15px;top:50%;transform:translateY(-52%);content:"!";display:block;width:20px;height:20px;line-height:20px;font-size:13px;text-align:center;color:#fff;background:#ffb84c;font-weight:700;border-radius:50%}.znc .msg>*{margin:.5rem 0}.znc .msg>:first-child,.znc .msg>:last-child{margin:0}.znc .msg a{color:inherit;text-decoration:underline}.znc .msg.alert{background:#ffeff2}.znc .msg.alert:before{background:#ff7670}.znc .footnotes{margin-top:3rem;color:#77838c;font-size:.9em}.znc .footnotes li::marker{color:#77838c}.znc .footnotes-title{padding-bottom:3px;border-bottom:solid 1px #cfdce6;font-weight:700;font-size:15px}.znc .footnotes-list{margin:13px 0 0}.znc .footnotes-twemoji{border:none;margin:0 7px 0 0;vertical-align:-3px}