@gitton-dev/plugin-zenn-markdown 0.0.11 → 0.0.13
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.
package/package.json
CHANGED
|
@@ -175,7 +175,7 @@ and ensure you are accounting for this risk.
|
|
|
175
175
|
</div>
|
|
176
176
|
${n}
|
|
177
177
|
</div>
|
|
178
|
-
`}function r0e(t,u){const{frontmatter:p,body:n}=e0e(t),l=p?t0e(p):"",e=Qhe(n,{embedOrigin:"https://embed.zenn.studio"});return l+e}const Vl=document.createElement("link");Vl.rel="stylesheet";Vl.href="https://unpkg.com/zenn-content-css@0.4.5/lib/index.css";document.head.appendChild(Vl);const Jk=document.createElement("style");Jk.textContent=`
|
|
178
|
+
`}function r0e(t,u){const{frontmatter:p,body:n}=e0e(t),l=p?t0e(p):"",e=Qhe(n,{embedOrigin:"https://embed.zenn.studio"});return l+e}function n0e(){document.addEventListener("click",t=>{var n,l;const p=t.target.closest("a");if(p&&p.href){const e=p.href;(e.startsWith("http://")||e.startsWith("https://"))&&(t.preventDefault(),typeof window<"u"&&((l=(n=window.gitton)==null?void 0:n.ui)!=null&&l.openExternal)&&window.gitton.ui.openExternal(e))}})}const Vl=document.createElement("link");Vl.rel="stylesheet";Vl.href="https://unpkg.com/zenn-content-css@0.4.5/lib/index.css";document.head.appendChild(Vl);const Jk=document.createElement("style");Jk.textContent=`
|
|
179
179
|
* { box-sizing: border-box; }
|
|
180
180
|
body {
|
|
181
181
|
margin: 0;
|
|
@@ -184,4 +184,4 @@ and ensure you are accounting for this risk.
|
|
|
184
184
|
background: transparent;
|
|
185
185
|
}
|
|
186
186
|
.znc { max-width: 100%; }
|
|
187
|
-
`;document.head.appendChild(Jk);const gl=document.getElementById("root");gl.className="znc";function Wl(t){t==="dark"?document.documentElement.setAttribute("data-theme","dark-blue"):document.documentElement.removeAttribute("data-theme")}window.addEventListener("message",async t=>{if(t.data.type==="render")try{const
|
|
187
|
+
`;document.head.appendChild(Jk);const gl=document.getElementById("root");gl.className="znc";function Wl(t){t==="dark"?document.documentElement.setAttribute("data-theme","dark-blue"):document.documentElement.removeAttribute("data-theme")}window.addEventListener("message",async t=>{var u;if(t.data.type==="gitton:context"){(u=t.data.context)!=null&&u.theme&&Wl(t.data.context.theme);return}if(t.data.type==="gitton:custom"){const{messageType:p,payload:n}=t.data;if(p==="render")try{const l=await r0e(n.content,n.options||{});gl.innerHTML=l;const e=document.body.scrollHeight;window.gitton.postMessage.send({type:"gitton:custom",pluginId:window.gitton.pluginId,messageType:"resize",payload:{height:e}})}catch(l){console.error("Render error:",l),gl.innerHTML='<pre style="color:red;">'+l.message+"</pre>"}}});window.addEventListener("gitton:contextchange",t=>{const u=t.detail;u!=null&&u.theme&&Wl(u.theme)});var HA,jA;typeof window.gitton<"u"&&((jA=(HA=window.gitton)==null?void 0:HA.context)!=null&&jA.theme)&&Wl(window.gitton.context.theme);const Qk=document.createElement("script");Qk.src="https://embed.zenn.studio/js/listen-embed-event.js";document.body.appendChild(Qk);n0e();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
2
|
+
<html lang="en" class="light">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Zenn Markdown Preview</title>
|
|
7
|
-
<script type="module" crossorigin src="../../assets/markdown-
|
|
7
|
+
<script type="module" crossorigin src="../../assets/markdown-DF-iTcQy.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<style>
|