import{Q as x,K as B}from"./index-Vd7lvnU9.js";import{F as h,bW as w,Q as S,R as d,_ as T,W,m as n,e as g}from"./vendor-Dd8T34zR.js";const C={class:"vp-markdown"},O=h({__name:"vp-markdown",props:{content:{}},setup(p){const a=p;function _(e){const t=e.trimStart();if(!t.startsWith("---"))return{frontmatter:{},body:e};const o=t.indexOf(`
---`,3);if(o===-1)return{frontmatter:{},body:e};const y=t.slice(4,o),b=t.slice(o+4).trimStart(),l={};for(const r of y.split(`
`)){const s=r.indexOf(":");if(s===-1)continue;const f=r.slice(0,s).trim(),u=r.slice(s+1).trim();f&&u&&(l[f]=u)}return{frontmatter:l,body:b}}const c=n(()=>a.content?_(a.content):{frontmatter:{},body:null}),i=n(()=>c.value.body),m=n(()=>c.value.frontmatter),v=n(()=>m.value.title),{title:k}=x(v);return w({title:k,description:()=>m.value.description}),(e,t)=>(d(),S("div",C,[i.value?(d(),T(g(B),{key:0,src:i.value},null,8,["src"])):W("",!0)]))}});export{O as default};
//# sourceMappingURL=vp-markdown-B7nVaAjE.js.map
