import{P as n}from"./prism-okaidia-8BB9FZN2.js";import{b as u,c as o,h as t,t as c,x as l,u as g}from"./vue-y3KLWBaS.js";import"./app-JmgyQoR0.js";const p=["innerHTML"],m=["innerHTML"],f=u({__name:"MkCode.core",props:{code:{},lang:{},inline:{type:Boolean}},setup(r){const a=r,e=o(()=>n.languages[a.lang]?a.lang:"plaintext"),s=o(()=>n.highlight(a.code,n.languages[e.value],e.value));return(i,d)=>i.inline?(t(),c("code",{key:0,class:l(`language-${e.value}`),innerHTML:s.value},null,10,p)):(t(),c("pre",{key:1,class:l(`language-${e.value}`)},[g("code",{class:l(`language-${e.value}`),innerHTML:s.value},null,10,m)],2))}});export{f as default};
