@sakura-ui/markdown 0.0.9 → 0.0.10

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/dist/index.cjs.js CHANGED
@@ -426,7 +426,7 @@ Check the top-level render call using <`+_+">.")}return h}function Cr(s,h){if(!(
426
426
  lg:aspect-auto
427
427
  lg:w-[${e.width}px]
428
428
  lg:h-[${e.height}px]
429
- `),Ye.jsx("iframe",{className:nr(u,i,t),...r,children:n})},K_=({children:e,showToc:t,tocTitle:n="目次"})=>{const[r,u]=Dt.useState([]),[i,a]=Dt.useState();Dt.useEffect(()=>{u(l(e)),a(f(e))},[e]);const l=p=>Jd().use($_).processSync(p).data.fm.headings.filter(D=>D.depth<3),c={...Dc,components:{a:q_,article:W_,button:Ia,code:l_,dl:c_,dt:f_,dd:d_,h1:h_,h2:p_,h3:m_,h4:E_,h5:g_,h6:b_,iframe:X_,img:Q_,ul:Ki,ol:__,pre:A_,table:V_,caption:C_,thead:D_,tbody:x_,th:S_,tr:k_,td:N_,div:G_}},f=p=>Uo().use(Do).use(Ip).use(Cm).use(h1).use(M_).use(L_).use(H_).use(j_).use(z_).use(Y_).use(U_).use(c1,{allowDangerousHtml:!0}).use(Fb).use($b,{target:"_blank"}).use(Wb,{shift:0}).use(YT).use(PT,c).processSync(p).result;return Ye.jsxs("div",{className:"py-8 flex flex-col gap-8",children:[t&&Ye.jsxs("nav",{className:`
429
+ `),Ye.jsx("iframe",{className:nr(u,i,t),...r,children:n})},K_=({children:e,showToc:t,tocTitle:n="目次"})=>{const[r,u]=Dt.useState([]),[i,a]=Dt.useState(Ye.jsx(Ye.Fragment,{}));Dt.useEffect(()=>{u(l(e)),a(f(e))},[e]);const l=p=>Jd().use($_).processSync(p).data.fm.headings.filter(D=>D.depth<3),c={...Dc,components:{a:q_,article:W_,button:Ia,code:l_,dl:c_,dt:f_,dd:d_,h1:h_,h2:p_,h3:m_,h4:E_,h5:g_,h6:b_,iframe:X_,img:Q_,ul:Ki,ol:__,pre:A_,table:V_,caption:C_,thead:D_,tbody:x_,th:S_,tr:k_,td:N_,div:G_}},f=p=>Uo().use(Do).use(Ip).use(Cm).use(h1).use(M_).use(L_).use(H_).use(j_).use(z_).use(Y_).use(U_).use(c1,{allowDangerousHtml:!0}).use(Fb).use($b,{target:"_blank"}).use(Wb,{shift:0}).use(YT).use(PT,c).processSync(p).result;return Ye.jsxs("div",{className:"py-8 flex flex-col gap-8",children:[t&&Ye.jsxs("nav",{className:`
430
430
  rounded-3xl
431
431
  p-10
432
432
  bg-wood-50