import{A as c,o as t,c as n,i as d,D as r,v as p}from"./-dIGDsTg.js";const u=["id"],f=["href"],k={__name:"ProseH1",props:{id:{type:String,required:!1}},setup(a){const o=a,{headings:e}=c().public.mdc,i=p(()=>o.id&&(typeof e?.anchorLinks=="boolean"&&e?.anchorLinks===!0||typeof e?.anchorLinks=="object"&&e?.anchorLinks?.h1));return(s,h)=>(t(),n("h1",{id:o.id},[d(i)?(t(),n("a",{key:0,href:`#${o.id}`},[r(s.$slots,"default")],8,f)):r(s.$slots,"default",{key:1})],8,u))}};export{k as default};