import{P as n}from"./prism-okaidia-Kcp3y7eP.js";import{b as i,j as t,p as c,x as l,q as u,f as r}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./syntax-DxiXBgO-.js";const g=["innerHTML"],p=["innerHTML"],k=i({__name:"MkCode.core",props:{code:{},lang:{},inline:{type:Boolean}},setup(o){const a=o,e=r(()=>n.languages[a.lang]?a.lang:"plaintext"),s=r(()=>n.highlight(a.code,n.languages[e.value],e.value));return(m,d)=>o.inline?(t(),c("code",{key:0,class:l(`language-${e.value}`),innerHTML:s.value},null,10,g)):(t(),c("pre",{key:1,class:l(`language-${e.value}`)},[u("code",{class:l(`language-${e.value}`),innerHTML:s.value},null,10,p)],2))}});export{k as default};
//# sourceMappingURL=MkCode.core-BoZV7D5Z.js.map
